Submission #523590

#TimeUsernameProblemLanguageResultExecution timeMemory
523590dron_rpMemory (IOI10_memory)C++14
0 / 100
1 ms268 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...