Submission #343940

#TimeUsernameProblemLanguageResultExecution timeMemory
343940IwanttobreakfreeMemory (IOI10_memory)C++98
100 / 100
2 ms492 KiB
#include <cmath> #include <cstdio> #include <vector> #include <iostream> #include <algorithm> #include "grader.h" #include "memory.h" using namespace std; void play() { int i,contador=0; char a[50]; for (i=0; i<50; ++i) { a[i]=faceup(i+1); } for(int b=0;b<50;b++){ for(int c=49;c>b;c--){ if(a[b]==a[c]){ if (faceup(b+1)==faceup(c+1)) contador++; } } if (contador==25) return; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...