# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
603862 | 2022-07-24T12:52:09 Z | MrDeboo | Flight to the Ford (BOI22_communication) | C++17 | 20 ms | 1768 KB |
#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
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 10 ms | 1768 KB | Output is correct |
2 | Incorrect | 2 ms | 200 KB | Not correct |
3 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 20 ms | 200 KB | Not correct |
2 | Halted | 0 ms | 0 KB | - |