답안 #207555

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
207555 2020-03-08T03:19:56 Z autumn_eel Broken Device (JOI17_broken_device) C++14
0 / 100
6 ms 632 KB
#include "Annalib.h"
#include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<(n);i++)
using namespace std;
typedef long long ll;

bool b[160],d[160];

void Anna(int N,ll X,int K,int P[]){
	memset(b,0,sizeof(b));
	memset(d,0,sizeof(d));
	rep(i,K){
		b[P[i]]=1;
	}
	int t=59;
	int i=0;
	while(i<N-1){
		if(!b[i]&&!b[i+1]){
			d[i]=1;d[i+1]=(X>>t&1);
			if(t==0)break;
			t--;
			i+=2;
		}
		else i++;
	}
	assert(t==0);
	rep(i,N)Set(i,d[i]);
}
#include "Brunolib.h"
#include <bits/stdc++.h>
#define rep(i,n)for(int i=0;i<(n);i++)
using namespace std;
typedef long long ll;

ll Bruno(int N,int A[]){
	ll ans=0;
	int i=0;
	while(i<N){
		if(A[i]==1){
			ans<<=1;
			ans+=A[i+1];
			i+=2;
		}
		else i++;
	}
	cerr<<"ans: "<<ans<<endl;
	return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Runtime error 6 ms 596 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
3 Runtime error 5 ms 376 KB Execution killed with signal 11 (could be triggered by violating memory limits)
4 Runtime error 5 ms 508 KB Execution killed with signal 11 (could be triggered by violating memory limits)
5 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
6 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
7 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
8 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
9 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
10 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
11 Runtime error 6 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
12 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
13 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
14 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
15 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
16 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
17 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
18 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
19 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
20 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
21 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
22 Runtime error 5 ms 632 KB Execution killed with signal 11 (could be triggered by violating memory limits)
23 Runtime error 5 ms 508 KB Execution killed with signal 11 (could be triggered by violating memory limits)
24 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
25 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
26 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
27 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
28 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
29 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
30 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
31 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
32 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
33 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
34 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
35 Runtime error 5 ms 508 KB Execution killed with signal 11 (could be triggered by violating memory limits)
36 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
37 Runtime error 6 ms 508 KB Execution killed with signal 11 (could be triggered by violating memory limits)
38 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
39 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)
40 Runtime error 5 ms 504 KB Execution killed with signal 11 (could be triggered by violating memory limits)