# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
100024 | 2019-03-09T06:40:55 Z | lyc | Broken Device (JOI17_broken_device) | C++14 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; void Anna( int N, long long X, int K, int P[] ){ // for( int i = 0; i < N; i ++ ){ // Set( i, 0 ); // } for (int i = 0; i < 60; ++i) { int b = ((X & (1LL<<i)) > 0 ? 1 : 0); cout << Set(2*i, b); Set(2*i+1, b); } for (int i = 120; i < N; ++i) { Set(i, 0); } //cout << X << endl; }