(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.

제출 #1106281

#제출 시각아이디문제언어결과실행 시간메모리
1106281iyedooMemory (IOI10_memory)C++17
100 / 100
2 ms584 KiB
#include <bits/stdc++.h> #include <grader.h> using namespace std; void play() { int candy = 0; vector<int> seen(50, -1); for (int i = 0; i < 50; ++i) seen[i] = faceup(i + 1); for (int i = 0; i < 50; ++i) { if (seen[i] == -1) continue; for (int j = i + 1; j < 50; ++j) { if (seen[i] == seen[j]) { faceup(i + 1); faceup(j + 1); candy++; seen[j] = -1; if (candy == 25) return; break; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...