Submission #916230

# Submission time Handle Problem Language Result Execution time Memory
916230 2024-01-25T14:05:30 Z kachu Truck Driver (IOI23_deliveries) C++17
0 / 100
83 ms 7772 KB
#include <bits/stdc++.h>
#include "deliveries.h"

using namespace std;
int a, b, d;

void init(int N, std::vector<int> U, std::vector<int> V, std::vector<int> T, std::vector<int> W) {
	a = W[0];
	b = W[1];
	d = T[0];
}

long long max_time(int S, int X){
	if (S == 0) a = X;
	else b = X;
	
	int A = a, B = b;
	
	if (A > B){
		A = B;
	}
	else if (B > A){
		B = A + 1;
	}
	
	
	if (A == B){
		return (A * 2 * d);
	}
	else{
		return (A * 2 * d) + 2;
	}
}
# Verdict Execution time Memory Grader output
1 Incorrect 83 ms 7772 KB 3rd lines differ - on the 1st token, expected: '39049160', found: '39049016'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 348 KB 3rd lines differ - on the 1st token, expected: '1627540', found: '206'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 83 ms 7772 KB 3rd lines differ - on the 1st token, expected: '39049160', found: '39049016'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 83 ms 7772 KB 3rd lines differ - on the 1st token, expected: '39049160', found: '39049016'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 83 ms 7772 KB 3rd lines differ - on the 1st token, expected: '39049160', found: '39049016'
2 Halted 0 ms 0 KB -