Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
107097 | 王珠潏 | 哪几扇门是打开的 | C++ | Wrong Answer | 1 MS | 264 KB | 233 | 2025-01-17 12:29:34 |
#include<bits/stdc++.h> using namespace std; int main(){ int n; bool f=true; for(int i=1;i<=100;i++){ if(i%2==0){ f=false; if(i%3==0){ f=true; } } if(f){ cout<<i<<" "; } } return 0; }
------Input------
0
------Answer-----
1 4 9 16 25 36 49 64 81 100
------Your output-----
1 6 7 12 13 18 19 24 25 30 31 36 37 42 43 48 49 54 55 60 61 66 67 72 73 78 79 84 85 90 91 96 97