(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 #339122

#TimeUsernameProblemLanguageResultExecution timeMemory
339122Ta180mMemory (IOI10_memory)C++17
100 / 100
3 ms492 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { vector<int> pos[128]; for (int i = 0; i < 25; ++i) pos[faceup(2*i+1)].push_back(2*i+1), pos[faceup(2*i+2)].push_back(2*i+2); for (int i = 'A'; i < 'Z'; ++i) faceup(pos[i][0]), faceup(pos[i][1]); }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:9:13: warning: array subscript has type 'char' [-Wchar-subscripts]
    9 |   pos[faceup(2*i+1)].push_back(2*i+1),
      |       ~~~~~~^~~~~~~
memory.cpp:10:13: warning: array subscript has type 'char' [-Wchar-subscripts]
   10 |   pos[faceup(2*i+2)].push_back(2*i+2);
      |       ~~~~~~^~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...