(UPD: 2024-12-04 14:48 UTC) Judge is not working due to Cloudflare incident. (URL) We can do nothing about it, sorry. After the incident is resolved, we will grade all submissions.

Submission #300295

#TimeUsernameProblemLanguageResultExecution timeMemory
300295fpc_coderMemory (IOI10_memory)C++17
100 / 100
2 ms384 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...