# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
941800 | 2024-03-09T12:51:04 Z | AhmadAlhussain | Cluedo (IOI10_cluedo) | C++17 | 1 ms | 504 KB |
#include "bits/stdc++.h" using namespace std; void Solve(){ int a[7]={},b[11]={},c[7]={}; while(true) { cout<<"Theory("; int x; int y; int z; for(int i=1;i<=6;i++) { if(a[i]==0) { cout<<i<<','; x=i; break; } } for(int i=1;i<=10;i++) { if(b[i]==0) { cout<<i<<','; y=i; break; } } for(int i=1;i<=6;i++) { if(c[i]==0) { cout<<i<<')'; z=i; break; } } int j; cin>>j; if(j==1) { a[x]=1; } else if(j==2) { b[y]=1; } else if(j==3) { c[z]=1; } else { break; } } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1 ms | 344 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 1 ms | 504 KB | Time limit exceeded (wall clock) |
2 | Halted | 0 ms | 0 KB | - |