| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 57309 | 姜李烨 | 硬币翻转 | C++ | Accepted | 100 | 0 MS | 248 KB | 373 | 2022-08-04 22:52:25 |
#include<bits/stdc++.h> using namespace std; int n,a[105]; int main(){ cin>>n; cout<<n<<endl; for(int i=1;i<=n;i++){ a[i]=0; } for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ if(j!=i){ a[j]=1-a[j]; } } for(int j=1;j<=n;j++) cout<<a[j]; cout<<endl; } return 0; }