Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
57050 李言 硬币翻转 C++ Accepted 100 0 MS 248 KB 267 2022-08-03 17:46:49

Tests(5/5):


#include<bits/stdc++.h> //1145141919810 using namespace std; int n,a[114],k=0; int main(){ cin>>n; cout<<n<<endl; for(int i=1;i<=n;i++){ k++; for(int j=1;j<=n;j++){ if(j<=k) cout<<(k+1)%2; else cout<<k%2; } cout<<endl; } return 0; }


Judgement Protocol: