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

제출 #198830

#제출 시각아이디문제언어결과실행 시간메모리
198830Markomafko972Memory (IOI10_memory)C++14
100 / 100
11 ms504 KiB
#include "grader.h" #include "memory.h" void play() { int v[55][5]; for (int i = 1; i <= 50; i++) v[i][0] = 0, v[i][1] = 0; for (int i = 1; i <= 50; i+= 2) { char c1 = faceup(i); char c2 = faceup(i+1); if (c1 != c2) { if (v[c1-'A'+1][0] == 0) v[c1-'A'+1][0] = i; else v[c1-'A'+1][1] = i; if (v[c2-'A'+1][0] == 0) v[c2-'A'+1][0] = i+1; else v[c2-'A'+1][1] = i+1; } } for (int i = 1; i <= 50; i++) { if (v[i][1] != 0) { faceup(v[i][0]); faceup(v[i][1]); } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...