| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1318202 | hayford08 | Memory (IOI10_memory) | C++20 | 0 ms | 0 KiB |
#include "grader.h"
#include "memory.h"
#include <bits/stdc++.h>
void play() {
array<bool, 50> found = {};
for (int i = 1; i <= 50; i++) {
if (found[i]) continue;
for (int j = i + 1; j <= 50; j++) {
char res1 = faceup(i);
char res2 = faceup(j);
if (res1 == res2) {
found[i] = true;
found[j] = true;
break;
}
}
}
}
