Submission #691229

# Submission time Handle Problem Language Result Execution time Memory
691229 2023-01-31T03:12:07 Z amunduzbaev Broken Device (JOI17_broken_device) C++17
0 / 100
47 ms 2660 KB
#include "Annalib.h"
#include "bits/stdc++.h"
using namespace std;

typedef long long ll;
#define ar array
//~ #define int ll

void Anna(int n, ll x, int k, int p[] ){
	vector<int> used(n);
	for(int i=0;i<k;i++){
		used[p[i]] = 1;
		Set(p[i], 0);
	}
	
	int j = 0;
	for(int i=1;i<n;i++){
		if(!used[i] && !used[i-1]){
			used[i] = used[i-1] = 1;
			Set(i - 1, 1);
			Set(i, (x >> j & 1));
			j++;
		}
	}
	for(int i=0;i<n;i++){
		if(!used[i]) Set(i, 0);
	}
}
#include "Brunolib.h"
#include "bits/stdc++.h"
using namespace std;

typedef long long ll;
#define ar array
//~ #define int ll

ll Bruno(int n, int a[] ){
	int j = 0;
	ll res = 0;
	for(int i=0;i<n;i++){
		if(a[i]){
			res |= (a[i + 1] << j); j++;
			i++;
		}
	}
	
	return res;
}
# Verdict Execution time Memory Grader output
1 Partially correct 32 ms 2644 KB Output isn't correct - L* = 0
2 Partially correct 30 ms 2568 KB Output isn't correct - L* = 0
3 Partially correct 28 ms 2520 KB Output isn't correct - L* = 0
4 Partially correct 40 ms 2512 KB Output isn't correct - L* = 0
5 Partially correct 28 ms 2460 KB Output isn't correct - L* = 0
6 Partially correct 32 ms 2524 KB Output isn't correct - L* = 0
7 Partially correct 34 ms 2564 KB Output isn't correct - L* = 0
8 Partially correct 30 ms 2428 KB Output isn't correct - L* = 0
9 Partially correct 31 ms 2420 KB Output isn't correct - L* = 0
10 Partially correct 45 ms 2600 KB Output isn't correct - L* = 0
11 Partially correct 31 ms 2420 KB Output isn't correct - L* = 0
12 Partially correct 31 ms 2484 KB Output isn't correct - L* = 0
13 Partially correct 35 ms 2540 KB Output isn't correct - L* = 0
14 Partially correct 28 ms 2480 KB Output isn't correct - L* = 0
15 Partially correct 30 ms 2540 KB Output isn't correct - L* = 0
16 Partially correct 32 ms 2472 KB Output isn't correct - L* = 0
17 Partially correct 28 ms 2620 KB Output isn't correct - L* = 0
18 Partially correct 37 ms 2648 KB Output isn't correct - L* = 0
19 Partially correct 38 ms 2612 KB Output isn't correct - L* = 0
20 Partially correct 28 ms 2608 KB Output isn't correct - L* = 0
21 Partially correct 32 ms 2476 KB Output isn't correct - L* = 0
22 Partially correct 35 ms 2660 KB Output isn't correct - L* = 0
23 Partially correct 31 ms 2492 KB Output isn't correct - L* = 0
24 Partially correct 39 ms 2484 KB Output isn't correct - L* = 0
25 Partially correct 32 ms 2516 KB Output isn't correct - L* = 0
26 Partially correct 31 ms 2592 KB Output isn't correct - L* = 0
27 Partially correct 31 ms 2540 KB Output isn't correct - L* = 0
28 Partially correct 30 ms 2572 KB Output isn't correct - L* = 0
29 Partially correct 32 ms 2536 KB Output isn't correct - L* = 0
30 Partially correct 33 ms 2484 KB Output isn't correct - L* = 0
31 Partially correct 31 ms 2592 KB Output isn't correct - L* = 0
32 Partially correct 30 ms 2484 KB Output isn't correct - L* = 0
33 Partially correct 30 ms 2532 KB Output isn't correct - L* = 0
34 Partially correct 28 ms 2556 KB Output isn't correct - L* = 0
35 Partially correct 28 ms 2532 KB Output isn't correct - L* = 0
36 Partially correct 35 ms 2516 KB Output isn't correct - L* = 0
37 Partially correct 44 ms 2436 KB Output isn't correct - L* = 0
38 Partially correct 45 ms 2400 KB Output isn't correct - L* = 0
39 Partially correct 36 ms 2476 KB Output isn't correct - L* = 0
40 Partially correct 47 ms 2572 KB Output isn't correct - L* = 0