Submission #717665

#TimeUsernameProblemLanguageResultExecution timeMemory
717665VMaksimoski008Memory (IOI10_memory)C++14
50 / 100
11 ms336 KiB
#include "grader.h" #include "memory.h" #include <set> void play() { int candies = 0; char a, b; std::set<int> used; for(int i=1; i<=50; i++) { for(int j=1; j<=50; j++) { if(i != j && used.find(i) == used.end() && used.find(j) == used.end()) { a = faceup(i); b = faceup(j); if(a == b) { candies++; used.insert(i); used.insert(j); } if(candies == 25) return ; } } } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...