Submission #1107611

# Submission time Handle Problem Language Result Execution time Memory
1107611 2024-11-01T17:07:11 Z vjudge1 Magic Tree (CEOI19_magictree) C++17
3 / 100
19 ms 508 KB
#include <bits/stdc++.h>
#define int long long int
#define ff first
#define ss second
#define FT ios_base::sync_with_stdio(false);cin.tie(0);
using namespace std;
signed main() {
	FT;
	int n , m , k;
	cin >> n >> m >> k;
	for (int i = 1 ; i < n ; i++)
	{
		int p;
		cin >> p;
	}
	int ans = 0;
	while (m--)
	{
		int v , d , w;
		cin >> v >> d >> w;
		ans += w;
	}
	cout << ans << endl;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 9 ms 336 KB Output is correct
2 Correct 10 ms 336 KB Output is correct
3 Correct 19 ms 336 KB Output is correct
4 Correct 18 ms 508 KB Output is correct
5 Correct 19 ms 336 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 17 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 2 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 336 KB Output isn't correct
2 Halted 0 ms 0 KB -