제출 #767868

#제출 시각아이디문제언어결과실행 시간메모리
767868benjaminkleynMemory (IOI10_memory)C++17
0 / 100
1 ms208 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { vector<char> val(50); for (int i = 0; i < 50; i++) val[i] = faceup(i+1); vector<bool> done(50, false); for (int i = 0; i < 50; i++) { if (done[i]) continue; for (int j = i + 1; j < 50; j++) if (val[j] == val[i]) { done[i] = done[j] = true; faceup(i); faceup(j); break; } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...