제출 #717619

#제출 시각아이디문제언어결과실행 시간메모리
717619EntityPlanttMemory (IOI10_memory)C++14
0 / 100
0 ms276 KiB
#include "grader.h" #include "memory.h" #include <vector> void play() { std::vector <int> mem[25]; int i; for (i = 0; i < 50; i += 2) { char a = faceup(i), b = faceup(i + 1); mem[a - 'A'].push_back(i); mem[b - 'A'].push_back(i + 1); if (a == b) { mem[a - 'A'].clear(); } } for (i = 0; i < 25; i++) { if (!mem[i].empty()) { faceup(mem[i][0]); faceup(mem[i][1]); } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...