Submission #564585

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