Submission #21038

# Submission time Handle Problem Language Result Execution time Memory
21038 2017-03-30T21:07:01 Z sbansalcs Broken Device (JOI17_broken_device) C++14
0 / 100
0 ms 1712 KB
#include "Annalib.h"
#include <stack>
#include <vector>
#include <assert.h>
using namespace std;
const int N = 155;
int arr[N];
int arr2[N];
void Anna( int N, long long X, int K, int P[] ){
	assert(0);
	long long X2=X;
	vector<int> vt;
	stack<int> st;

	for(int i=0;i<N;i++)	{
		arr[i]=0,arr2[i]=0;
	}
	for(int i=0;i<60;i++)	{
		st.push(X2%2);
		X2/=2;
	}
	for(int i=0;i<K;i++)	{
		arr2[P[i]]=1;
	}
	int i=0;
	int cnt=0;
	while(i+3<N)	{
		bool poss=1;
		for(int j=i;j<=i+3;j++)	{
			if(arr2[j])	poss=0;
		}
		if(poss)	{
			cnt++;
			vt.push_back(i);
		}
		assert(cnt>=20);
	}




  for( int i = 0; i < N; i++ ){
    Set( i, arr[i]);
  }
}
#include "Brunolib.h"

long long Bruno( int N, int A[] ){
  return 0LL;
}

Compilation message




# Verdict Execution time Memory Grader output
1 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
2 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
3 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
4 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
5 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
6 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
7 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
8 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
9 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
10 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
11 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
12 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
13 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
14 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
15 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
16 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
17 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
18 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
19 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
20 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
21 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
22 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
23 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
24 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
25 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
26 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
27 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
28 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
29 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
30 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
31 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
32 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
33 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
34 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
35 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
36 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
37 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
38 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
39 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)
40 Runtime error 0 ms 1712 KB Execution killed because of forbidden syscall gettid (186)