标签:
这玩意还有什么思路。
#include <stdio.h>
int main() {
int d = 0, j = 0;
char c;
while (~scanf("%c", &c))
if (c == ‘\n‘) {
while (~scanf("%c", &c) && c != ‘\n‘) d++;
printf(d > j ? "no\n" : "go\n");
d = j = 0;
}
else j++;
return 0;
}
标签:
原文地址:http://blog.csdn.net/u012925008/article/details/45886745