爱情锦囊

关注

P1597 语句解析

爱情锦囊

关注

阅读 20

2022-07-28


P1597 语句解析_#include

#include<stdio.h>
int a[3];char s1,s2;
int main()
{
while (scanf("%c:=%c;",&s1,&s2)==2)
a[s1-'a']=s2>='0' && s2<='9' ? s2-'0' : a[s2-'a']; //赋值语句简洁明了
printf("%d %d %d",a[0],a[1],a[2]);
return 0;
}


相关推荐

止止_8fc8

用C++写P1597语句解析

止止_8fc8 27 0 0

米小格儿

洛谷——P1597 语句解析(两种解法)

米小格儿 35 0 0

舟海君

sql语句解析

舟海君 106 0 0

云上笔记

UVa1597 - Searching the Web

云上笔记 17 0 0

玉字璧

全面解析P2P网络

玉字璧 46 0 0

MaxWen

HDU1597 find the nth digit

MaxWen 30 0 0

耶也夜

SQL语句解析类型---硬解析和软解析

耶也夜 74 0 0

贵州谢高低

(P34)异常处理:else语句,with

贵州谢高低 77 0 0

花明

HDU-1597 find the nth digit(思维)

花明 38 0 0

水沐由之

HDU 1597 find the nth digit 找规律

水沐由之 54 0 0

精彩评论(0)

0 0 举报