Submission #131558

# Submission time Handle Problem Language Result Execution time Memory
131558 2019-07-17T09:41:48 Z mahmoudbadawy Broken Device (JOI17_broken_device) C++17
0 / 100
46 ms 3064 KB
#include "Annalib.h"

int br[155];

void Anna( int N, long long X, int K, int P[] ){
	for(int i=0;i<N;i++) br[i]=0;
	for(int i=0;i<K;i++) br[P[i]]=1;
	for(int i=0;i<N;i++)
	{
		if(i+1<N&&br[i]==0&&br[i+1]==0)
		{
			Set(i,1); Set(i+1,X%2); X/=2;
			i++;
		}
		else
			Set(i,0);
	}
}
#include "Brunolib.h"
#include <bits/stdc++.h>

using namespace std;

long long Bruno( int N, int A[] ){
	long long ans=0;
	for(int i=0;i<N;i++)
	{
		//cout << i << endl;
		if(A[i])
		{
			ans=ans*2+A[i+1];
			i++;
		}
	}
	//cout << "DONE" << endl;
	return ans;
}
# Verdict Execution time Memory Grader output
1 Incorrect 44 ms 3056 KB Output isn't correct - L* = 0
2 Incorrect 43 ms 2800 KB Output isn't correct - L* = 0
3 Incorrect 41 ms 2800 KB Output isn't correct - L* = 0
4 Incorrect 43 ms 2888 KB Output isn't correct - L* = 0
5 Incorrect 43 ms 2800 KB Output isn't correct - L* = 0
6 Incorrect 43 ms 2800 KB Output isn't correct - L* = 0
7 Incorrect 41 ms 2800 KB Output isn't correct - L* = 0
8 Incorrect 43 ms 3056 KB Output isn't correct - L* = 0
9 Incorrect 41 ms 2800 KB Output isn't correct - L* = 0
10 Incorrect 41 ms 2800 KB Output isn't correct - L* = 0
11 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
12 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
13 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
14 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
15 Incorrect 43 ms 3056 KB Output isn't correct - L* = 0
16 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
17 Incorrect 43 ms 2952 KB Output isn't correct - L* = 0
18 Incorrect 44 ms 3056 KB Output isn't correct - L* = 0
19 Incorrect 43 ms 3064 KB Output isn't correct - L* = 0
20 Incorrect 46 ms 3056 KB Output isn't correct - L* = 0
21 Incorrect 41 ms 2808 KB Output isn't correct - L* = 0
22 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
23 Incorrect 41 ms 2800 KB Output isn't correct - L* = 0
24 Incorrect 43 ms 2800 KB Output isn't correct - L* = 0
25 Incorrect 41 ms 2800 KB Output isn't correct - L* = 0
26 Incorrect 41 ms 2800 KB Output isn't correct - L* = 0
27 Incorrect 43 ms 3064 KB Output isn't correct - L* = 0
28 Incorrect 45 ms 3056 KB Output isn't correct - L* = 0
29 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
30 Incorrect 43 ms 2800 KB Output isn't correct - L* = 0
31 Incorrect 43 ms 3000 KB Output isn't correct - L* = 0
32 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
33 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
34 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
35 Incorrect 43 ms 3056 KB Output isn't correct - L* = 0
36 Incorrect 44 ms 2976 KB Output isn't correct - L* = 0
37 Incorrect 43 ms 3056 KB Output isn't correct - L* = 0
38 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
39 Incorrect 43 ms 2800 KB Output isn't correct - L* = 0
40 Incorrect 43 ms 2800 KB Output isn't correct - L* = 0