hdoj 1021

来源:互联网 发布:齐鲁大学生软件大赛 编辑:程序博客网 时间:2024/05/20 03:42

链接:
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;}