제출 #567628

#제출 시각아이디문제언어결과실행 시간메모리
567628losmi247Memory (IOI10_memory)C++14
100 / 100
3 ms288 KiB
#include <bits/stdc++.h> #include "memory.h" #include "grader.h" using namespace std; typedef long long ll; void play(){ string h = ""; vector <int> pos1(26,0),pos2(26,0); for(int i = 1; i <= 50; i += 2){ char t1 = faceup(i); char t2 = faceup(i+1); h += t1; h += t2; if(pos1[t1-'A'] == 0) pos1[t1-'A'] = i; else pos2[t1-'A'] = i; if(pos1[t2-'A'] == 0) pos1[t2-'A'] = i+1; else pos2[t2-'A'] = i+1; } for(int i = 0; i < 25; i++){ faceup(pos1[i]); faceup(pos2[i]); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...