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

#TimeUsernameProblemLanguageResultExecution timeMemory
374631KarliverMemory (IOI10_memory)C++14
100 / 100
3 ms492 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> const int N = 51; using namespace std; void play() { int tot = 0; vector<vector<int>> ind(30); map<char, int> mp; for(int i = 0;i < 25;++i) { char f = faceup(i + 1); char s = faceup(50 - i); if(f == s) { ++tot; mp[f] = 1; } ind[f - 'A'].push_back(i + 1); ind[s - 'A'].push_back(50 - i); } if(tot == 25) { return; } for(char c = 'A';c <= 'Y';++c) { if(mp[c])continue; for(auto p : ind[c - 'A']) { char ls = faceup(p); } ++tot; if(tot == 25) { return; } } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:30:18: warning: unused variable 'ls' [-Wunused-variable]
   30 |             char ls = faceup(p);
      |                  ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...