Submission #755319

#TimeUsernameProblemLanguageResultExecution timeMemory
755319vjudge1Memory (IOI10_memory)C++17
100 / 100
3 ms336 KiB
#include "grader.h" #include "memory.h" void play() { char arr[51]; int vis[51]; for (int i = 1; i <= 50; i++) arr[i] = '0', vis[i] = 0; for (int i = 1; i <= 50; i++) { arr[i] = faceup(i); } for (int i = 1; i <= 50; i++) { if (vis[i]) continue; faceup(i); for (int j = i+1; j <= 50; j++) if (arr[i] == arr[j] && !vis[j]) faceup(j), vis[j] = 1; } return; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...