Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
57684 | 张浩然 | 硬币翻转 | C++ | Accepted | 100 | 0 MS | 256 KB | 231 | 2022-08-06 12:53:39 |
#include<bits/stdc++.h> using namespace std; int n,a[110]; int main(){ cin>>n; cout<<n<<endl; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ if(i!=j) a[j]=!a[j]; cout<<a[j]; } cout<<endl; } return 0; }