Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155656 李亭绪 哪几扇门是打开的 C++ Wrong Answer 4 MS 264 KB 476 2026-06-10 19:01:21

Tests(0/1):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int a[101]; for(int j=1;j<=100;j++) { for(int i=1;i<=100;i++){ if(a[i]%j==0){ a[i]=!(a[i]); } } } for(int i=1;i<=100;i++){ cout<<a[i]<<endl; } }


Run Info:

------Input------
0
------Answer-----
1 4 9 16 25 36 49 64 81 100
------Your output-----
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1