Submission #1081584

# Submission time Handle Problem Language Result Execution time Memory
1081584 2024-08-30T07:47:06 Z Elias Pipes (CEOI15_pipes) C++17
0 / 100
1 ms 2392 KB
#include <bits/stdc++.h>

using namespace std;

int parent[10000000];
int depth[100000];
int root[100000];
int union_parent[100000];
int children[100000];

signed main()
{
	cin.tie(0);
	ios_base::sync_with_stdio(false);
	
	int n, m;
	cin >> n >> m;


	for (int i = 0; i < n; i++) {
		parent[i] = depth[i] = root[i] = union_parent[i] = children[i] = i;
	}

	cout << parent[n-1] + depth[n-1] + root[n-1] + union_parent[n-1] + children[n-1];
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 604 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 860 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 1624 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 1880 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 2392 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 2392 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 2136 KB Unexpected end of file - int32 expected
2 Halted 0 ms 0 KB -