| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56881 | 姜李烨 | 硬币翻转 | C++ | Compile Error | 0 | 0 MS | 0 KB | 535 | 2022-08-03 15:46:19 |
#include<bits/stdc++.h> using namespace std; int n,a[102]={0},st[102]={0}; bool check(int a[]){ int t=0; for(int i=1;i<=n-1;i++){ if(a[i]==st[i]){ t++; } } if(t==3) return true; else return false; } void dfs(int step){ //if fine,print ans int t=0; for(int i=1;i<=n;i++){ if(a[i]==1) t++; } if(t==n){ step++; for(itn i=1;i<=n;i++){ cout<<a[i]; } cout<<step; } //dfs start for(int i=1;i<=n;i++){ if(check(a)){ } } } int main(){ cin>>n; cout<<n return 0; }