链接:
http://acm.hdu.edu.cn/showproblem.php?pid=1021
这是道坑爹的水题,通过对数据分析,可以发现每隔四个数据就出现一个yes
#include <iostream> using namespace std; int main() { int j; while (cin >> j) { if ((j+2)%4 == 0) puts("yes"); else puts("no"); } return 0; }
链接:
http://acm.hdu.edu.cn/showproblem.php?pid=1021
这是道坑爹的水题,通过对数据分析,可以发现每隔四个数据就出现一个yes
#include <iostream> using namespace std; int main() { int j; while (cin >> j) { if ((j+2)%4 == 0) puts("yes"); else puts("no"); } return 0; }