# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
767349 | Gabi88 | Memory (IOI10_memory) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<bits/stdc++.h>
using namespace std;
vector<set<int>> v;
set<int> s;
char a;
int main(){
ios_base::sync_with_stdio(false); cin.tie(0);
while(v.size() < 25) v.push_back(s);
for(int i=1; i < 51; i++){ cout << "faceup(" << i << ")" << endl; cin >> a; v[a-'A'].insert(i); }
for(int i=1; i < 26; i++){
for(auto it : v[i]){ cout << "faceup(" << i << ")" << endl; cin >> a; }
}
return 0;
}