답안 #915004

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
915004 2024-01-23T06:36:59 Z LCJLY Truck Driver (IOI23_deliveries) C++17
8 / 100
70 ms 10328 KB
#include "deliveries.h"
#include <bits/stdc++.h>
using namespace std;

int arr[2];
int dist;
void init(int n, vector<int> u, vector<int> v, vector<int> t, vector<int> w) {
	for(int x=0;x<2;x++){
		arr[x]=w[x];
	}
	dist=t[0];
	return;
}

long long max_time(int S, int X) {
	arr[S]=X;
	if(arr[0]>=arr[1]){
		return dist*arr[1]*2;
	}
	else{
		return dist*(arr[0]+1)*2;
	}
}
# 결과 실행 시간 메모리 Grader output
1 Correct 67 ms 7696 KB Output is correct
2 Correct 69 ms 10180 KB Output is correct
3 Correct 70 ms 10328 KB Output is correct
4 Correct 69 ms 10320 KB Output is correct
5 Correct 70 ms 10324 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 348 KB 3rd lines differ - on the 1st token, expected: '1627540', found: '204'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 67 ms 7696 KB Output is correct
2 Correct 69 ms 10180 KB Output is correct
3 Correct 70 ms 10328 KB Output is correct
4 Correct 69 ms 10320 KB Output is correct
5 Correct 70 ms 10324 KB Output is correct
6 Incorrect 1 ms 344 KB 3rd lines differ - on the 1st token, expected: '45306', found: '144'
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 67 ms 7696 KB Output is correct
2 Correct 69 ms 10180 KB Output is correct
3 Correct 70 ms 10328 KB Output is correct
4 Correct 69 ms 10320 KB Output is correct
5 Correct 70 ms 10324 KB Output is correct
6 Incorrect 1 ms 348 KB 3rd lines differ - on the 1st token, expected: '129238', found: '176'
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 67 ms 7696 KB Output is correct
2 Correct 69 ms 10180 KB Output is correct
3 Correct 70 ms 10328 KB Output is correct
4 Correct 69 ms 10320 KB Output is correct
5 Correct 70 ms 10324 KB Output is correct
6 Incorrect 1 ms 348 KB 3rd lines differ - on the 1st token, expected: '1627540', found: '204'
7 Halted 0 ms 0 KB -