제출 #132819

#제출 시각아이디문제언어결과실행 시간메모리
132819Osama_Alkhodairy질문 (CEOI14_question_grader)C++17
0 / 100
4 ms852 KiB
#include <bits/stdc++.h> using namespace std; int encode (int n, int x, int y) { int h = 0; while(((x >> h) & 1) == ((y >> h) & 1)) h++; assert(h < 10); if((x >> h) & 1) h += 10; return h; }
#include <bits/stdc++.h> using namespace std; int decode (int n, int q, int h) { int xbit = h >= 10; if(h >= 10) h -= 10; if(((q >> h) & 1) == xbit) return 1; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...