# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1034670 | 2024-07-25T16:31:47 Z | adaawf | Broken Device (JOI17_broken_device) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> using namespace std; void Anna(int N, long long int X, int K, int P[]) { set<int> s; for (int i = 0; i < K; i++) { s.insert(P[i]); } for (int i = 0; i < N; i++) { if ((X & (1ll << (i % 60))) && !s.count(i)) { Set(i, 1); } else { Set(i, 0); } } }