| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1349465 | win | Memory (IOI10_memory) | C++20 | 0 ms | 344 KiB |
#include <bits/stdc++.h>
#include "grader.h"
#include "memory.h"
using namespace std;
const int N = 55;
char t[N];
bool mark[300];
void play() {
int n = 50;
int cnt = 0;
for (int i = 1; i <= 25; i++) {
int a = i*2-1;
int b = i*2;
t[a] = faceup(a), t[b] = faceup(b);
if (t[a] == t[b]) {
mark[t[a]] = 1;
}
}
for (int i = 1; i <= 25; i++) {
for (int j = i+1; j <= 25; j++) {
if (t[i] == t[j] && !mark[t[i]]) {
mark[t[i]] = 1;
faceup(i); faceup(j);
}
}
}
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
