Submission #86524

# Submission time Handle Problem Language Result Execution time Memory
86524 2018-11-26T11:59:21 Z MaHaMBa_25 Turnir (COCI17_turnir) C++14
0 / 100
3000 ms 4364 KB
#include <bits/stdc++.h>
#define GLHF ios_base::sync_with_stdio(0); cin.tie(), cout.tie();
#define GGWP return 0;
#define ALTF4 exit(0)
#define GCWS/*Good Contest, Well Solved*/ ALTF4
#define ull unsigned long long
#define ll long long
#define ld long double
#define fxr1(x) for(int I = 0; I < x; ++I)
#define fxr(x) for(int I = 0; I <= x; ++I)
#define F first
#define S second

using namespace std;

int n, b[21], a[21] = {-1};

int main()
{

	GLHF

	cin >> n;
	
	for ( int I = 0; I < pow(2, n); ++I )
		cin >> a[I];
	sort( a, a + n );
	int I = 0, J = 1;
	while ( I <= pow(2, n)/2 )
	{
		for ( int K = 1; K <= J; ++K )
		{
			cout << I << endl;
		}
		J *= 2;
	}
	GGWP

}
# Verdict Execution time Memory Grader output
1 Execution timed out 3042 ms 4364 KB Time limit exceeded
2 Execution timed out 3032 ms 4364 KB Time limit exceeded
3 Execution timed out 3047 ms 4364 KB Time limit exceeded
4 Execution timed out 3053 ms 4364 KB Time limit exceeded
5 Runtime error 3 ms 4364 KB Execution killed with signal 11 (could be triggered by violating memory limits)
6 Runtime error 3 ms 4364 KB Execution killed with signal 11 (could be triggered by violating memory limits)
7 Runtime error 3 ms 4364 KB Execution killed with signal 11 (could be triggered by violating memory limits)
8 Runtime error 3 ms 4364 KB Execution killed with signal 11 (could be triggered by violating memory limits)
9 Runtime error 3 ms 4364 KB Execution killed with signal 11 (could be triggered by violating memory limits)
10 Runtime error 3 ms 4364 KB Execution killed with signal 11 (could be triggered by violating memory limits)