# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
823830 | 2023-08-13T08:02:57 Z | ttamx | Flight to the Ford (BOI22_communication) | C++17 | 3 ms | 268 KB |
#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 time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 3 ms | 200 KB | Not correct |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 2 ms | 268 KB | Not correct |
2 | Halted | 0 ms | 0 KB | - |