| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56984 | 杨中琦 | 硬币翻转 | C++ | Accepted | 100 | 0 MS | 252 KB | 375 | 2022-08-03 17:22:56 |
#include<bits/stdc++.h> using namespace std; #define maxn 110 bool a[maxn]; int n; int main(){ cin>>n; cout<<n<<endl; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ if(j!=i){ if(a[j])a[j]=0; else a[j]=1; } cout<<a[j]; } cout<<endl; } return 0; }