답안 #131574

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
131574 2019-07-17T09:57:42 Z Mahmoud_Adel Broken Device (JOI17_broken_device) C++14
0 / 100
43 ms 3312 KB
#include <bits/stdc++.h>
#include "Annalib.h"

using namespace std;
int mark[151];
void Anna(int n, long long x, int k, int p[] )
{
	for(int i=0; i<k; i++) mark[p[i]-1] = 1;
	long long cnt = 0;
	for(int i=0; i<n; i++)
	{
		if(!mark[i] && !mark[i+1] && cnt < 60 && i < n-1)
		{
			if(x & (1LL<<cnt)) Set(i, 1), Set(i+1, 1);
			else Set(i, 1), Set(i+1, 0);
			cnt++;
			i++;
		}
		else Set(i, 0);
	}
}
#include "Brunolib.h"
#include <bits/stdc++.h>

using namespace std;
long long Bruno(int n, int a[] )
{
	long long x = 0;
	int cnt = 0;
	for(int i=0; i<n-1; i++)
	{
		if(a[i] == 1)
		{
			if(a[i+1]) x |= (1LL<<cnt);
			cnt++;
			i++;
		}
	}
	return x;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
2 Incorrect 43 ms 3056 KB Output isn't correct - L* = 0
3 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
4 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
5 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
6 Incorrect 43 ms 2800 KB Output isn't correct - L* = 0
7 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
8 Incorrect 41 ms 3064 KB Output isn't correct - L* = 0
9 Incorrect 40 ms 3000 KB Output isn't correct - L* = 0
10 Incorrect 40 ms 3072 KB Output isn't correct - L* = 0
11 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
12 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
13 Incorrect 40 ms 3312 KB Output isn't correct - L* = 0
14 Incorrect 43 ms 3056 KB Output isn't correct - L* = 0
15 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
16 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
17 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
18 Incorrect 39 ms 3056 KB Output isn't correct - L* = 0
19 Incorrect 40 ms 3312 KB Output isn't correct - L* = 0
20 Incorrect 39 ms 3056 KB Output isn't correct - L* = 0
21 Incorrect 40 ms 2960 KB Output isn't correct - L* = 0
22 Incorrect 41 ms 3056 KB Output isn't correct - L* = 0
23 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
24 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
25 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
26 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
27 Incorrect 39 ms 2920 KB Output isn't correct - L* = 0
28 Incorrect 39 ms 2888 KB Output isn't correct - L* = 0
29 Incorrect 39 ms 3056 KB Output isn't correct - L* = 0
30 Incorrect 39 ms 3056 KB Output isn't correct - L* = 0
31 Incorrect 39 ms 3056 KB Output isn't correct - L* = 0
32 Incorrect 39 ms 3056 KB Output isn't correct - L* = 0
33 Incorrect 40 ms 3312 KB Output isn't correct - L* = 0
34 Incorrect 39 ms 3056 KB Output isn't correct - L* = 0
35 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
36 Incorrect 39 ms 3056 KB Output isn't correct - L* = 0
37 Incorrect 39 ms 3056 KB Output isn't correct - L* = 0
38 Incorrect 40 ms 3040 KB Output isn't correct - L* = 0
39 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0
40 Incorrect 40 ms 3056 KB Output isn't correct - L* = 0