답안 #101849

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
101849 2019-03-20T14:14:01 Z hugo_pm Broken Device (JOI17_broken_device) C++17
0 / 100
6 ms 904 KB
#include "Annalib.h"

void Anna( int N, long long X, int K, int P[] ){
	if (K > 1) return;
	int i=0;
	if (K == 1) i = P[0]+1;
	for (int h = 0; h < i; ++h) Set(h, 0);
	Set(i, 1);
	for (int b = 62; b >= 0; --b) {
		++i;
		int k = 0;
		if (X & (1LL << (long long)(b))) k = 1;
		Set(i, k);
	}
	while (i+1 != N) { ++i; Set(i, 0); }
}
#include "Brunolib.h"

long long Bruno( int N, int A[] ){
	long long X = 0;
	int i = 0;
	while (A[i] == 0) ++i;
	for (int b = 62; b >= 0; --b) {
		++i;
		if (A[i] == 1) X += 1LL << (long long)(b);
	}
	return X;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 4 ms 776 KB Wrong Answer [4]
2 Incorrect 4 ms 768 KB Wrong Answer [4]
3 Incorrect 5 ms 776 KB Wrong Answer [4]
4 Incorrect 4 ms 892 KB Wrong Answer [4]
5 Incorrect 4 ms 640 KB Wrong Answer [4]
6 Incorrect 2 ms 776 KB Wrong Answer [1]
7 Incorrect 4 ms 776 KB Wrong Answer [4]
8 Incorrect 4 ms 776 KB Wrong Answer [4]
9 Incorrect 4 ms 640 KB Wrong Answer [4]
10 Incorrect 4 ms 776 KB Wrong Answer [4]
11 Incorrect 3 ms 640 KB Wrong Answer [4]
12 Incorrect 4 ms 640 KB Wrong Answer [4]
13 Incorrect 4 ms 896 KB Wrong Answer [4]
14 Incorrect 4 ms 896 KB Wrong Answer [4]
15 Incorrect 6 ms 776 KB Wrong Answer [4]
16 Incorrect 4 ms 640 KB Wrong Answer [4]
17 Incorrect 4 ms 768 KB Wrong Answer [1]
18 Incorrect 4 ms 672 KB Wrong Answer [4]
19 Incorrect 4 ms 668 KB Wrong Answer [4]
20 Incorrect 4 ms 640 KB Wrong Answer [1]
21 Incorrect 4 ms 668 KB Wrong Answer [4]
22 Incorrect 4 ms 768 KB Wrong Answer [4]
23 Incorrect 4 ms 640 KB Wrong Answer [4]
24 Incorrect 4 ms 776 KB Wrong Answer [4]
25 Incorrect 4 ms 776 KB Wrong Answer [4]
26 Incorrect 4 ms 904 KB Wrong Answer [4]
27 Incorrect 4 ms 768 KB Wrong Answer [4]
28 Incorrect 3 ms 640 KB Wrong Answer [4]
29 Incorrect 4 ms 664 KB Wrong Answer [4]
30 Incorrect 4 ms 640 KB Wrong Answer [4]
31 Incorrect 4 ms 768 KB Wrong Answer [4]
32 Incorrect 4 ms 768 KB Wrong Answer [4]
33 Incorrect 4 ms 904 KB Wrong Answer [4]
34 Incorrect 4 ms 640 KB Wrong Answer [4]
35 Incorrect 4 ms 672 KB Wrong Answer [4]
36 Incorrect 4 ms 748 KB Wrong Answer [4]
37 Incorrect 4 ms 776 KB Wrong Answer [4]
38 Incorrect 4 ms 772 KB Wrong Answer [4]
39 Incorrect 4 ms 776 KB Wrong Answer [4]
40 Incorrect 4 ms 708 KB Wrong Answer [4]