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

#TimeUsernameProblemLanguageResultExecution timeMemory
1113625m_bezrutchkaMemory (IOI10_memory)C++14
100 / 100
3 ms508 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { vector<char> q; int i; char a, b; for (i = 0; i < 25; i++) { a = faceup(2*i + 1); b = faceup(2*i + 2); q.push_back(a); q.push_back(b); } for(int j = 0; j < q.size(); j++){ for(int k = j + 1; k < q.size(); k++){ if(q[j] == q[k]){ faceup(j + 1); faceup(k + 1); } } } return; }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:16:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   16 |     for(int j = 0; j < q.size(); j++){
      |                    ~~^~~~~~~~~~
memory.cpp:17:28: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   17 |       for(int k = j + 1; k < q.size(); k++){
      |                          ~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...