Submission #564671

# Submission time Handle Problem Language Result Execution time Memory
564671 2022-05-19T12:53:57 Z shrimb Question (Grader is different from the original contest) (CEOI14_question_grader) C++17
0 / 100
1825 ms 24048 KB
#include"bits/stdc++.h"
using namespace std;
int encode (int n, int x, int y) {
    int ret = 0;
    while (x % 2 == 0) ret++, x/=2;
    while (x % 2) ret++, x/=2;
    return ret;
}
#include"bits/stdc++.h"
using namespace std;
int decode (int n, int q, int h) {
	int x = q;
	int ret = 0;
    while (x % 2 == 0) ret++, x/=2;
    while (x % 2) ret++, x/=2;
	return ret == h;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1790 ms 24048 KB wrong answer
2 Incorrect 1825 ms 24000 KB wrong answer