Submission #564623

# Submission time Handle Problem Language Result Execution time Memory
564623 2022-05-19T12:13:09 Z shrimb Question (Grader is different from the original contest) (CEOI14_question_grader) C++17
0 / 100
1875 ms 24184 KB
#include"bits/stdc++.h"
using namespace std;
int encode (int n, int x, int y) {
    return (x-1) % 5 + (x+1) % 7 + (x-1) % 3 + 1;
}
#include"bits/stdc++.h"
using namespace std;
int decode (int n, int q, int h) {
	if ((q-1) % 5 + (q+1) % 7 + (q-1) % 3 == h - 1) return 1;
	else return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1875 ms 24184 KB wrong answer
2 Incorrect 1782 ms 24096 KB wrong answer