제출 #689373

#제출 시각아이디문제언어결과실행 시간메모리
689373sharaelongMemory (IOI10_memory)C++17
100 / 100
2 ms264 KiB
#include "grader.h" #include "memory.h" void play() { char ch[51]; for (int i=1; i<=50; ++i) ch[i] = faceup(i); for (int i=1; i<=50; ++i) { if ('A' <= ch[i] && ch[i] <= 'Y') { for (int j=i+1; j<=50; ++j) { if (ch[j] == ch[i]) { faceup(i); faceup(j); ch[i] = 0; ch[j] = 0; break; } } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...