답안 #131571

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
131571 2019-07-17T09:53:57 Z Mahmoud_Adel Broken Device (JOI17_broken_device) C++14
0 / 100
6 ms 988 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)
		{
			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++;
		}
	}
	return x;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 4 ms 760 KB Wrong Answer [1]
2 Incorrect 4 ms 760 KB Wrong Answer [1]
3 Incorrect 4 ms 632 KB Wrong Answer [1]
4 Incorrect 4 ms 760 KB Wrong Answer [1]
5 Incorrect 4 ms 632 KB Wrong Answer [1]
6 Incorrect 4 ms 760 KB Wrong Answer [1]
7 Incorrect 4 ms 628 KB Wrong Answer [1]
8 Incorrect 4 ms 632 KB Wrong Answer [1]
9 Incorrect 4 ms 756 KB Wrong Answer [1]
10 Incorrect 4 ms 868 KB Wrong Answer [1]
11 Incorrect 4 ms 752 KB Wrong Answer [1]
12 Incorrect 4 ms 988 KB Wrong Answer [1]
13 Incorrect 4 ms 860 KB Wrong Answer [1]
14 Incorrect 4 ms 752 KB Wrong Answer [1]
15 Incorrect 4 ms 988 KB Wrong Answer [1]
16 Incorrect 4 ms 752 KB Wrong Answer [1]
17 Incorrect 4 ms 760 KB Wrong Answer [1]
18 Incorrect 4 ms 760 KB Wrong Answer [1]
19 Incorrect 4 ms 772 KB Wrong Answer [1]
20 Incorrect 4 ms 760 KB Wrong Answer [1]
21 Incorrect 4 ms 764 KB Wrong Answer [1]
22 Incorrect 4 ms 888 KB Wrong Answer [1]
23 Incorrect 6 ms 760 KB Wrong Answer [1]
24 Incorrect 4 ms 632 KB Wrong Answer [1]
25 Incorrect 4 ms 880 KB Wrong Answer [1]
26 Incorrect 4 ms 760 KB Wrong Answer [1]
27 Incorrect 4 ms 632 KB Wrong Answer [1]
28 Incorrect 4 ms 752 KB Wrong Answer [1]
29 Incorrect 4 ms 880 KB Wrong Answer [1]
30 Incorrect 4 ms 768 KB Wrong Answer [1]
31 Incorrect 4 ms 632 KB Wrong Answer [1]
32 Incorrect 4 ms 860 KB Wrong Answer [1]
33 Incorrect 4 ms 636 KB Wrong Answer [1]
34 Incorrect 4 ms 768 KB Wrong Answer [1]
35 Incorrect 4 ms 768 KB Wrong Answer [1]
36 Incorrect 4 ms 768 KB Wrong Answer [1]
37 Incorrect 4 ms 760 KB Wrong Answer [1]
38 Incorrect 4 ms 760 KB Wrong Answer [1]
39 Incorrect 4 ms 632 KB Wrong Answer [1]
40 Incorrect 4 ms 872 KB Wrong Answer [1]