This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#include "grader.h"
#include "memory.h"
using namespace std;
queue<int> q[25];
void play(){
for(int i = 1; i <= 50; i += 2){
int a = faceup(i) - 'A';
int b = faceup(i + 1) - 'A';
if(a != b){
q[a].push(i);
q[b].push(i + 1);
}
}
for(int i = 0; i < 25; i++){
while(!q[i].empty()){
faceup(q[i].front());
q[i].pop();
}
}
return;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |