标签:acm author desc 判断 integer tput 成功 tle for
#include <stdio.h> int main(void) { int a, b; int sum,ch; while ((ch = scanf_s("%d %d", &a, &b)) == 2) { sum = a + b; printf("%d\n", sum); } return 0; }
本来以为需要EOF判断结束的,没想到这样成功了。还是不明白AC的机制。
标签:acm author desc 判断 integer tput 成功 tle for
原文地址:http://www.cnblogs.com/WLHBlog/p/7565247.html