NOIP2016 阅读程序写结果
2.
#include <iostream> using namespace std; int main() { int i = 100, x = 0, y = 0; while (i > 0) { i--; x = i % 8; if (x == 1) y++; } cout << y << endl; return 0; }
输出:_________
发表评论