Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
57109 董承诺 硬币翻转 C++ Accepted 100 0 MS 252 KB 360 2022-08-03 19:04:36

Tests(5/5):


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


Judgement Protocol: