답안 #340978

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
340978 2020-12-28T19:39:29 Z rqi Broken Device (JOI17_broken_device) C++14
0 / 100
36 ms 3384 KB
#include "Annalib.h"
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;
typedef vector<int> vi;

vi res(150, 0);

bool bad[150];

void Anna( int N, ll _X, int K, int P[] ){
	bitset<60> X = bitset<60>(_X);

	for(int i = 0; i < K; i++){
		bad[P[i]] = 1;
	}

	bool frontbad = 0;
	for(int i = 0; i < 60; i++){
		if(bad[i]) frontbad = 1;
	}

	if(!frontbad){
		for(int i = 0; i < 60; i++){
			res[i] = X[i];
		}
	}
	else{
		for(int i = 0; i < 60; i++){
			res[90+i] = X[i];
		}
	}

	for(int i = 0; i < N; i++){
		Set(i, res[i]);
		cout << res[i];
	}
	cout << "\n";
}
#include "Brunolib.h"
#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

long long Bruno( int N, int A[] ){
	bool frontbad = 1;
	for(int i = 0; i < 60; i++){
		if(A[i] == 1) frontbad = 0;
	}
	bitset<60> X;
	if(!frontbad){
		for(int i = 0; i < 60; i++){
			X[i] = A[i];
		}
	}
	else{
		for(int i = 0; i < 60; i++){
			X[i] = A[90+i];
		}
	}

	cout << ll(X.to_ulong()) << "\n";

	return ll(X.to_ulong());
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 33 ms 3204 KB Unexpected end of file - int64 expected
2 Incorrect 32 ms 3172 KB Unexpected end of file - int64 expected
3 Incorrect 35 ms 3020 KB Unexpected end of file - int64 expected
4 Incorrect 33 ms 3204 KB Unexpected end of file - int64 expected
5 Runtime error 34 ms 3280 KB Execution killed with signal 11 (could be triggered by violating memory limits)
6 Incorrect 32 ms 3024 KB Unexpected end of file - int64 expected
7 Incorrect 33 ms 3024 KB Unexpected end of file - int64 expected
8 Incorrect 33 ms 3204 KB Unexpected end of file - int64 expected
9 Incorrect 33 ms 3152 KB Unexpected end of file - int64 expected
10 Incorrect 34 ms 3384 KB Unexpected end of file - int64 expected
11 Incorrect 33 ms 3252 KB Unexpected end of file - int64 expected
12 Incorrect 33 ms 3152 KB Unexpected end of file - int64 expected
13 Runtime error 34 ms 3280 KB Execution killed with signal 11 (could be triggered by violating memory limits)
14 Incorrect 33 ms 3244 KB Unexpected end of file - int64 expected
15 Incorrect 33 ms 3020 KB Unexpected end of file - int64 expected
16 Incorrect 32 ms 3024 KB Unexpected end of file - int64 expected
17 Incorrect 33 ms 3020 KB Unexpected end of file - int64 expected
18 Incorrect 33 ms 3020 KB Unexpected end of file - int64 expected
19 Runtime error 34 ms 3152 KB Execution killed with signal 11 (could be triggered by violating memory limits)
20 Incorrect 32 ms 3204 KB Unexpected end of file - int64 expected
21 Incorrect 32 ms 3148 KB Unexpected end of file - int64 expected
22 Incorrect 32 ms 3212 KB Unexpected end of file - int64 expected
23 Incorrect 32 ms 3148 KB Unexpected end of file - int64 expected
24 Incorrect 32 ms 3152 KB Unexpected end of file - int64 expected
25 Incorrect 32 ms 3024 KB Unexpected end of file - int64 expected
26 Incorrect 33 ms 3152 KB Unexpected end of file - int64 expected
27 Incorrect 33 ms 3156 KB Unexpected end of file - int64 expected
28 Incorrect 33 ms 3328 KB Unexpected end of file - int64 expected
29 Incorrect 32 ms 3212 KB Unexpected end of file - int64 expected
30 Incorrect 32 ms 3172 KB Unexpected end of file - int64 expected
31 Incorrect 32 ms 3212 KB Unexpected end of file - int64 expected
32 Incorrect 32 ms 3024 KB Unexpected end of file - int64 expected
33 Incorrect 36 ms 3292 KB Unexpected end of file - int64 expected
34 Incorrect 32 ms 3020 KB Unexpected end of file - int64 expected
35 Incorrect 33 ms 3340 KB Unexpected end of file - int64 expected
36 Incorrect 33 ms 3204 KB Unexpected end of file - int64 expected
37 Incorrect 33 ms 3152 KB Unexpected end of file - int64 expected
38 Incorrect 33 ms 3020 KB Unexpected end of file - int64 expected
39 Incorrect 33 ms 3020 KB Unexpected end of file - int64 expected
40 Incorrect 32 ms 3024 KB Unexpected end of file - int64 expected