| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 57068 | 陈路垚 | 硬币翻转 | C++ | Compile Error | 0 | 0 MS | 0 KB | 336 | 2022-08-03 17:57:07 |
#include<bits/stdc++.h> using namespace std; 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; } return 0 }