Submission #564609

#TimeUsernameProblemLanguageResultExecution timeMemory
564609shrimbQuestion (Grader is different from the original contest) (CEOI14_question_grader)C++17
0 / 100
1793 ms24188 KiB
#include"bits/stdc++.h" using namespace std; int encode (int n, int x, int y) { int ret = 0; for (int i = 1 ; i < 13 ; i++) { ret ^= x % i; } return ret+1; }
#include"bits/stdc++.h" using namespace std; int decode (int n, int q, int h) { int ret = 0; for (int i = 1 ; i < 13 ; i++) { ret ^= q % i; } if (ret == h - 1) return 1; else return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...