现在的位置: 首页 > 综合 > 正文

hdoj 1021

2019年07月31日 ⁄ 综合 ⁄ 共 202字 ⁄ 字号 评论关闭

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

 

【上篇】
【下篇】

抱歉!评论已关闭.