Submission #917198

# Submission time Handle Problem Language Result Execution time Memory
917198 2024-01-27T12:23:58 Z zyq181 Truck Driver (IOI23_deliveries) C++17
8 / 100
88 ms 10648 KB
	#include "deliveries.h"
	#include <bits/stdc++.h>
	using namespace std;
	long long A, B;
	long long w;
	int ans;

	void init(int N, std::vector<int> U, std::vector<int> V, std::vector<int> T, std::vector<int> W) {
		w = T[0];
		A = W[0] + 1;
		B = W[1];
		return;
	}

	long long max_time(int S, int X) {
		if(S == 0) A = X + 1;
		else B = X;
		return 2LL*min(A, B)*w;
	}
# Verdict Execution time Memory Grader output
1 Correct 73 ms 10648 KB Output is correct
2 Correct 71 ms 10068 KB Output is correct
3 Correct 69 ms 10316 KB Output is correct
4 Correct 70 ms 10300 KB Output is correct
5 Correct 88 ms 10452 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB 3rd lines differ - on the 1st token, expected: '1627540', found: '272'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 73 ms 10648 KB Output is correct
2 Correct 71 ms 10068 KB Output is correct
3 Correct 69 ms 10316 KB Output is correct
4 Correct 70 ms 10300 KB Output is correct
5 Correct 88 ms 10452 KB Output is correct
6 Incorrect 1 ms 348 KB 3rd lines differ - on the 1st token, expected: '45306', found: '288'
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 73 ms 10648 KB Output is correct
2 Correct 71 ms 10068 KB Output is correct
3 Correct 69 ms 10316 KB Output is correct
4 Correct 70 ms 10300 KB Output is correct
5 Correct 88 ms 10452 KB Output is correct
6 Incorrect 0 ms 348 KB 3rd lines differ - on the 1st token, expected: '129238', found: '176'
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 73 ms 10648 KB Output is correct
2 Correct 71 ms 10068 KB Output is correct
3 Correct 69 ms 10316 KB Output is correct
4 Correct 70 ms 10300 KB Output is correct
5 Correct 88 ms 10452 KB Output is correct
6 Incorrect 1 ms 348 KB 3rd lines differ - on the 1st token, expected: '1627540', found: '272'
7 Halted 0 ms 0 KB -