Submission #823830

#TimeUsernameProblemLanguageResultExecution timeMemory
823830ttamxFlight to the Ford (BOI22_communication)C++17
0 / 100
3 ms268 KiB
#include"communication.h" #include<bits/stdc++.h> using namespace std; void encode(int N, int X){ for(int i=0;i<30;i++){ while(send(1)){ send(X>>i&1); } } } pair<int, int> decode(int N) { int num=0; for(int i=0;i<30;i++){ while(receive()){ num|=receive()<<i; } } return {num,num}; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...