Submission #882160

#TimeUsernameProblemLanguageResultExecution timeMemory
882160androCave (IOI13_cave)C++14
12 / 100
14 ms600 KiB
#include <bits/stdc++.h> #include "cave.h" using namespace std; /* int n; void answer(int S[],int D[]){ for(int i=0;i<n;i++)cout<<S[i]<<" "; exit(0); } int tryCombination(int S[]){ cout<<"? "; for(int i=0;i<n;i++)cout<<S[i]<<" "; cout<<endl; int x; cin>>x; return x; }*/ void exploreCave(int N) { int S[N]; int D[N]; for(int i=0;i<N;i++){ D[i]=i; S[i]=0; } for(int i=0;i<N;i++){ int A=tryCombination(S); if(A==-1)break; if(A>=i+1){ } else { S[i]=1; } } answer(S,D); }/* signed main(){ cin>>n; exploreCave(n); }*/
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...