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

#TimeUsernameProblemLanguageResultExecution timeMemory
500022LucaIlieMemory (IOI10_memory)C++17
100 / 100
3 ms284 KiB
#include <iostream> #include "grader.h" #include "memory.h" using namespace std; /*char faceup( int c ) { char ans; cout << c << "\n"; cin >> ans; return ans; }*/ void play() { const int n = 25; int lit, i; int poz[n][2]; for ( i = 0; i < n; i++ ) poz[i][0] = poz[i][1] = 0; for ( i = 1; i <= 2 * n; i++ ) { lit = faceup( i ) - 'A'; if ( poz[lit][0] == 0 ) poz[lit][0] = i; else poz[lit][1] = i; } for ( i = 0; i < n; i++ ) { faceup( poz[i][0] ); faceup( poz[i][1] ); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...