이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "grader.h"
#include "memory.h"
using namespace std;
const int N = 55;
char cards[N];
bool has[30];
void play() {
for (int i = 1; i <= 50; i++) {
cards[i] = faceup(i);
}
memset(has, false, sizeof(has));
for (int i = 1; i <= 50; i++) {
for (int j = i + 1; j <= 50; j++) {
if (cards[i] == cards[j] && !has[cards[i] - 'A']) {
faceup(i); faceup(j);
has[cards[i] - 'A'] = true;
}
}
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |