int main(void) { int a,b,s,t; scanf("%d,%d",&a,&b); s = 1; t = 1; if(a > 0) s = s + 1; if(a > b) t = s + t; else if(a == b) t = 5; else t = 2 * s; printf("t=%d\n",t); return 0; }
a>b
a<b<0
0<a<b
0>a>b
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题