题解 | #多组输入while(scanf()!=EOF / ~scanf())#

最高分数

http://www.nowcoder.com/practice/52c18a3b49a54fc98107fbdde1415f90

#include<stdio.h> int main() { int a = 0; int b = 0; int c = 0; while(~scanf("%d %d %d",&a,&b,&c)) { int max = a>b?a:b; max = max>c?max:c; printf("%d\n",max); }

return 0;

}

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务