Submission #729227

#TimeUsernameProblemLanguageResultExecution timeMemory
729227NintsiChkhaidzeMemory (IOI10_memory)C++17
100 / 100
3 ms324 KiB
#include <bits/stdc++.h> #include "grader.h" #include "memory.h" #define pb push_back using namespace std; vector <int> v[27]; void play() { int i; char a, b; for (i=1; i<51; i += 2) { a = faceup(i); b = faceup(i+1); v[a-'A'+1].pb(i); v[b-'A'+1].pb(i+1); } for (int i = 1; i <= 25; i++){ for (int x: v[i]) faceup(x); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...