Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
57259 安一宸 硬币翻转 C++ 通过 100 0 MS 248 KB 395 2022-08-04 13:25:28

Tests(5/5):


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


测评信息: