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

#TimeUsernameProblemLanguageResultExecution timeMemory
432943gonzakia29Memory (IOI10_memory)C++17
100 / 100
4 ms384 KiB
#include <vector> #include "memory.h" #include "grader.h" using namespace std; vector <int> x[2000]; void play() { for (int i = 1; i <= 50; ++i){ x[faceup(i)].push_back(i); } for ( int i = 'A'; i < 'Z'; ++i){ for (auto j : x[i]){ faceup(j); } } }

Compilation message (stderr)

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