# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
635485 | 2022-08-26T10:26:31 Z | shafinalam | Last supper (IOI12_supper) | C++17 | 0 ms | 0 KB |
#include "advisor.h" #include <vector> #include <set> using namespace std; void ComputeAdvice(int *C, int N, int K, int M) { for(int i=0;i<N;i++){ int x=C[i]; for(int j=0;j<20;j++){ if(x&1)WriteAdvice(1); else WriteAdvice(0); x/=2; } } }