Submission #282088

# Submission time Handle Problem Language Result Execution time Memory
282088 2020-08-24T01:34:17 Z thtsshz_bgwrswh Question (Grader is different from the original contest) (CEOI14_question_grader) C++17
27 / 100
4577 ms 47992 KB
int encode(int n,int x,int y){
	int i;
	for(i=0;;i++)
		if((x>>i&1)!=(y>>i&1))
			return i+1+10*(x>>i&1);
}
int decode(int n,int q,int h){
	if(h>10){
		h-=10;
		return q>>(h-1)&1;
	}
	return !(q>>(h-1)&1);
}
# Verdict Execution time Memory Grader output
1 Partially correct 3825 ms 47768 KB Output is partially correct - maxh = 20
2 Partially correct 4577 ms 47992 KB Output is partially correct - maxh = 20