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 "grader.h"
#include "memory.h"
#include <vector>
using namespace std;
void play() {
vector<pair<int, int>> a(25, {0, 0});
for (int i = 1; i<=50; i+=2){
char x = faceup(i);
char y = faceup(i+1);
if (a[x-'A'].first == 0){
a[x-'A'].first = i;
} else{
a[x-'A'].second = i;
}
if (a[y-'A'].first == 0){
a[y-'A'].first = i;
} else{
a[y-'A'].second = i;
}
}
int candies = 0;
for (int i = 0; i<25; i++){
char x = faceup(a[i].first);
char y = faceup(a[i].second);
candies += (x == y);
}
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |