# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
635483 | 2022-08-26T10:26:00 Z | shafinalam | Last supper (IOI12_supper) | C++14 | 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; } } }