답안 #131557

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
131557 2019-07-17T09:41:00 Z mahmoudbadawy Broken Device (JOI17_broken_device) C++17
0 / 100
317 ms 3568 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;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 293 ms 3376 KB Program terminated incorrectly, or you printed something to stdout
2 Incorrect 294 ms 3064 KB Program terminated incorrectly, or you printed something to stdout
3 Incorrect 292 ms 3056 KB Program terminated incorrectly, or you printed something to stdout
4 Incorrect 317 ms 3120 KB Program terminated incorrectly, or you printed something to stdout
5 Incorrect 296 ms 3128 KB Program terminated incorrectly, or you printed something to stdout
6 Incorrect 292 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
7 Incorrect 293 ms 3320 KB Program terminated incorrectly, or you printed something to stdout
8 Incorrect 292 ms 3164 KB Program terminated incorrectly, or you printed something to stdout
9 Incorrect 291 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
10 Incorrect 293 ms 3056 KB Program terminated incorrectly, or you printed something to stdout
11 Incorrect 291 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
12 Incorrect 291 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
13 Incorrect 291 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
14 Incorrect 292 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
15 Incorrect 296 ms 3120 KB Program terminated incorrectly, or you printed something to stdout
16 Incorrect 292 ms 3068 KB Program terminated incorrectly, or you printed something to stdout
17 Incorrect 290 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
18 Incorrect 291 ms 3084 KB Program terminated incorrectly, or you printed something to stdout
19 Incorrect 295 ms 3056 KB Program terminated incorrectly, or you printed something to stdout
20 Incorrect 294 ms 3056 KB Program terminated incorrectly, or you printed something to stdout
21 Incorrect 298 ms 3064 KB Program terminated incorrectly, or you printed something to stdout
22 Incorrect 290 ms 3048 KB Program terminated incorrectly, or you printed something to stdout
23 Incorrect 293 ms 3248 KB Program terminated incorrectly, or you printed something to stdout
24 Incorrect 291 ms 3092 KB Program terminated incorrectly, or you printed something to stdout
25 Incorrect 293 ms 3136 KB Program terminated incorrectly, or you printed something to stdout
26 Incorrect 295 ms 3568 KB Program terminated incorrectly, or you printed something to stdout
27 Incorrect 291 ms 3084 KB Program terminated incorrectly, or you printed something to stdout
28 Incorrect 296 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
29 Incorrect 295 ms 3056 KB Program terminated incorrectly, or you printed something to stdout
30 Incorrect 298 ms 3064 KB Program terminated incorrectly, or you printed something to stdout
31 Incorrect 290 ms 3056 KB Program terminated incorrectly, or you printed something to stdout
32 Incorrect 304 ms 3056 KB Program terminated incorrectly, or you printed something to stdout
33 Incorrect 292 ms 3056 KB Program terminated incorrectly, or you printed something to stdout
34 Incorrect 293 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
35 Incorrect 292 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
36 Incorrect 295 ms 3264 KB Program terminated incorrectly, or you printed something to stdout
37 Incorrect 293 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
38 Incorrect 291 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
39 Incorrect 291 ms 3312 KB Program terminated incorrectly, or you printed something to stdout
40 Incorrect 294 ms 3312 KB Program terminated incorrectly, or you printed something to stdout