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

#TimeUsernameProblemLanguageResultExecution timeMemory
545582rc_catuntaMemory (IOI10_memory)C++14
100 / 100
2 ms256 KiB
#include "grader.h" #include "memory.h" #include <vector> #include <cstdio> using namespace std; void play_50puntos() { char a, b; for (int carta=1; carta<=50; carta++) { for(int j=carta+1;j<=50;j++){ a = faceup(carta); b = faceup(j); if(a==b) break; } } } void play(){ vector< vector<int> >memoria; memoria.assign(25,vector<int>()); char a, b; for(int i=1;i<=50;i++){ a = faceup(i); int ascii = a - 'A'; memoria[ascii].push_back(i); } for(int i=0;i<25;i++){ a = faceup(memoria[i][0]); b = faceup(memoria[i][1]); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:22:12: warning: variable 'b' set but not used [-Wunused-but-set-variable]
   22 |    char a, b;
      |            ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...