Submission #839571

# Submission time Handle Problem Language Result Execution time Memory
839571 2023-08-30T08:59:52 Z model_code Truck Driver (IOI23_deliveries) C++17
8 / 100
96 ms 7692 KB
// correct/solution-subtask1.cpp

#include "deliveries.h"

#include <iostream>

#define MAXN 101000

using namespace std;

long long N, TIME;
long long W[MAXN];


void init(int NN, std::vector<int> /*UU*/, std::vector<int> /*VV*/, std::vector<int> TT, std::vector<int> WW){
	N = NN;
	for(int i=0; i<N; i++){
		W[i] = WW[i];
	}

	W[0]++;
    TIME = TT[0];
}

long long max_time(int S, int X){
	if(S==0) X++;
	W[S] = X;

	return TIME * 2 * min(W[0],W[1]);
}
# Verdict Execution time Memory Grader output
1 Correct 74 ms 7624 KB Output is correct
2 Correct 67 ms 7404 KB Output is correct
3 Correct 65 ms 7668 KB Output is correct
4 Correct 66 ms 7576 KB Output is correct
5 Correct 96 ms 7692 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB 3rd lines differ - on the 1st token, expected: '1627540', found: '204'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 74 ms 7624 KB Output is correct
2 Correct 67 ms 7404 KB Output is correct
3 Correct 65 ms 7668 KB Output is correct
4 Correct 66 ms 7576 KB Output is correct
5 Correct 96 ms 7692 KB Output is correct
6 Incorrect 0 ms 212 KB 3rd lines differ - on the 1st token, expected: '45306', found: '144'
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 74 ms 7624 KB Output is correct
2 Correct 67 ms 7404 KB Output is correct
3 Correct 65 ms 7668 KB Output is correct
4 Correct 66 ms 7576 KB Output is correct
5 Correct 96 ms 7692 KB Output is correct
6 Incorrect 1 ms 212 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 74 ms 7624 KB Output is correct
2 Correct 67 ms 7404 KB Output is correct
3 Correct 65 ms 7668 KB Output is correct
4 Correct 66 ms 7576 KB Output is correct
5 Correct 96 ms 7692 KB Output is correct
6 Incorrect 1 ms 212 KB 3rd lines differ - on the 1st token, expected: '1627540', found: '204'
7 Halted 0 ms 0 KB -