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

#TimeUsernameProblemLanguageResultExecution timeMemory
1112179enzyMemory (IOI10_memory)C++14
0 / 100
2 ms336 KiB
#include "grader.h" #include "memory.h" #include <bits/stdc++.h> using namespace std; void play() { int v1[30], v2[30]; for(int i=0;i<30;i++){ v1[i]=-1; v2[i]=-1; } for(int i=1;i<=100;i+=2){ char a=faceup(i), b=faceup(i+1); int ia=a%65, ib=b%65; if(v1[ia]==-1) v1[ia]=i; else v2[ia]=i; if(v1[ib]==-1) v1[ib]=i+1; else v2[ib]=i+1; } for(int i=0;i<25;i++){ char l1=faceup(v1[i]), l2=faceup(v2[i]); } }

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:20:14: warning: unused variable 'l1' [-Wunused-variable]
   20 |         char l1=faceup(v1[i]), l2=faceup(v2[i]);
      |              ^~
memory.cpp:20:32: warning: unused variable 'l2' [-Wunused-variable]
   20 |         char l1=faceup(v1[i]), l2=faceup(v2[i]);
      |                                ^~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...