| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 57063 | 李思贤 | 硬币翻转 | C++ | Accepted | 100 | 0 MS | 248 KB | 347 | 2022-08-03 17:55:25 |
#include<bits/stdc++.h> using namespace std; int fan[1000][1000]; int main(){ int n; cin>>n; cout<<n<<endl; for(int i=1;i<=n;i++){ if(i%2==1){ for(int j=1;j<=i;j++) cout<<0; for(int j=i+1;j<=n;j++) cout<<1; } if(i%2==0){ for(int j=1;j<=i;j++) cout<<1; for(int j=i+1;j<=n;j++) cout<<0; } cout<<endl; } }