제출 #998345

#제출 시각아이디문제언어결과실행 시간메모리
998345SonicMLMemory (IOI10_memory)C++14
0 / 100
0 ms344 KiB
#include "grader.h" #include "memory.h" void play() { char ch; int flip[25]; bool firstCard = true; for(int pos = 1;pos <= 50;pos++) { ch = faceup(pos); if(firstCard == true) { if(flip[ch-'A'] != 0) { faceup(flip[ch-'A']); }else{ firstCard = false; } }else { if(flip[ch-'A'] != 0) { faceup(flip[ch-'A']); faceup(pos); firstCard = true; }else { firstCard = true; } } flip[ch-'A'] = pos; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...