Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
57140 202103Clyde 硬币翻转 C++ Accepted 100 0 MS 248 KB 290 2022-08-03 20:15:08

Tests(5/5):


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


Judgement Protocol: