Submission #603864

#TimeUsernameProblemLanguageResultExecution timeMemory
603864MrDebooFlight to the Ford (BOI22_communication)C++17
0 / 100
94 ms1700 KiB
#include"communication.h" #include <bits/stdc++.h> using namespace std; void encode(int n, int x) { srand(654634); int f=rand()%100+100; while(f--&&send(0)!=1){ ; } send((x==1)); } std::pair<int, int> decode(int n) { srand(654634); int f=rand()%100+100; while(f--&&receive()!=1){ ; } if(receive())return {1,1}; return {3, 2}; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...