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

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
4648112021-08-14 08:35:29BenmathMemory (IOI10_memory)C++14
100 / 100
2 ms284 KiB
#include<bits/stdc++.h>
#include "grader.h"
#include "memory.h"
using namespace std;
void play() {
int i;
char a, b;
map<char,int>mapa1;
map<char,int>mapa2;
for(char x='A';x<='Y';x++){
mapa1[x]=-1;
mapa2[x]=-1;
}
for (int i=1;i<=49;i=i+2){
a=faceup(i);
b=faceup(i+1);
if(mapa1[a]==-1){
mapa1[a]=i;
}else{
mapa2[a]=i;
}
if(mapa1[b]==-1){
mapa1[b]=i+1;
}else{
mapa2[b]=i+1;
}
}
for(char x='A';x<='Y';x++){
a=faceup(mapa1[x]);
b=faceup(mapa2[x]);
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

memory.cpp: In function 'void play()':
memory.cpp:6:8: warning: unused variable 'i' [-Wunused-variable]
    6 |    int i;
      |        ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...