# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1078391 | 2024-08-27T16:33:30 Z | anton | Broken Device (JOI17_broken_device) | C++17 | 2 ms | 1056 KB |
#include "Annalib.h" #include<bits/stdc++.h> using namespace std; #define ll long long void Anna( int N, long long X, int K, int P[] ){ vector<int> info_bits; while(X>0){ info_bits.push_back(X%2LL); X/=2LL; } vector<bool> broken(N, false); for(int i = 0; i<K; i++){ broken[P[i]] = true; } int cur_id = 0; for(int i = 0; i<info_bits.size(); i++){ while(broken[cur_id] || broken[cur_id+1]){ Set(cur_id, 0); cur_id++; } Set(cur_id, 1); Set(cur_id+1, info_bits[i]); cur_id+=2; } while(cur_id<N){ Set(cur_id, 0); cur_id++; } }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 808 KB | Wrong Answer [1] |
2 | Incorrect | 0 ms | 812 KB | Wrong Answer [1] |
3 | Incorrect | 1 ms | 812 KB | Wrong Answer [1] |
4 | Incorrect | 1 ms | 800 KB | Wrong Answer [1] |
5 | Incorrect | 0 ms | 800 KB | Wrong Answer [1] |
6 | Incorrect | 1 ms | 796 KB | Wrong Answer [1] |
7 | Incorrect | 1 ms | 800 KB | Wrong Answer [1] |
8 | Incorrect | 0 ms | 800 KB | Wrong Answer [1] |
9 | Incorrect | 0 ms | 796 KB | Wrong Answer [1] |
10 | Incorrect | 1 ms | 796 KB | Wrong Answer [1] |
11 | Incorrect | 0 ms | 812 KB | Wrong Answer [1] |
12 | Incorrect | 0 ms | 800 KB | Wrong Answer [1] |
13 | Incorrect | 0 ms | 808 KB | Wrong Answer [1] |
14 | Incorrect | 2 ms | 792 KB | Wrong Answer [1] |
15 | Incorrect | 1 ms | 796 KB | Wrong Answer [1] |
16 | Incorrect | 0 ms | 808 KB | Wrong Answer [1] |
17 | Incorrect | 0 ms | 812 KB | Wrong Answer [1] |
18 | Incorrect | 0 ms | 800 KB | Wrong Answer [1] |
19 | Incorrect | 0 ms | 796 KB | Wrong Answer [1] |
20 | Incorrect | 0 ms | 808 KB | Wrong Answer [1] |
21 | Incorrect | 0 ms | 812 KB | Wrong Answer [1] |
22 | Incorrect | 0 ms | 912 KB | Wrong Answer [1] |
23 | Incorrect | 0 ms | 800 KB | Wrong Answer [1] |
24 | Incorrect | 0 ms | 812 KB | Wrong Answer [1] |
25 | Incorrect | 1 ms | 800 KB | Wrong Answer [1] |
26 | Incorrect | 0 ms | 808 KB | Wrong Answer [1] |
27 | Incorrect | 0 ms | 812 KB | Wrong Answer [1] |
28 | Incorrect | 0 ms | 800 KB | Wrong Answer [1] |
29 | Incorrect | 1 ms | 800 KB | Wrong Answer [1] |
30 | Incorrect | 1 ms | 812 KB | Wrong Answer [1] |
31 | Incorrect | 1 ms | 800 KB | Wrong Answer [1] |
32 | Incorrect | 1 ms | 812 KB | Wrong Answer [1] |
33 | Incorrect | 0 ms | 812 KB | Wrong Answer [1] |
34 | Incorrect | 0 ms | 1056 KB | Wrong Answer [1] |
35 | Incorrect | 0 ms | 800 KB | Wrong Answer [1] |
36 | Incorrect | 0 ms | 812 KB | Wrong Answer [1] |
37 | Incorrect | 0 ms | 816 KB | Wrong Answer [1] |
38 | Incorrect | 0 ms | 812 KB | Wrong Answer [1] |
39 | Incorrect | 0 ms | 808 KB | Wrong Answer [1] |
40 | Incorrect | 0 ms | 808 KB | Wrong Answer [1] |