Submission #564589

# Submission time Handle Problem Language Result Execution time Memory
564589 2022-05-19T11:41:05 Z shrimb Question (Grader is different from the original contest) (CEOI14_question_grader) C++17
0 / 100
1875 ms 24124 KB
#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, 13}) {
        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 : {2, 3, 5, 7, 11, 13}) {
        ret ^= q % i;
    }
	if (ret == h - 1) return 1;
	else return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1778 ms 24028 KB wrong answer
2 Incorrect 1875 ms 24124 KB wrong answer