Submission #603862

#TimeUsernameProblemLanguageResultExecution timeMemory
603862MrDebooFlight to the Ford (BOI22_communication)C++17
0 / 100
20 ms1768 KiB
#include"communication.h" #include <bits/stdc++.h> using namespace std; void encode(int n, int x) { int f=rand()%100+100; while(send(0)!=1){ ; } send((x==1)); } std::pair<int, int> decode(int n) { while(receive()!=1){ ; } if(receive())return {1,1}; return {3, 2}; }

Compilation message (stderr)

communication.cpp: In function 'void encode(int, int)':
communication.cpp:5:9: warning: unused variable 'f' [-Wunused-variable]
    5 |     int f=rand()%100+100;
      |         ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...