답안 #916231

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
916231 2024-01-25T14:06:08 Z kachu Truck Driver (IOI23_deliveries) C++17
8 / 100
72 ms 10060 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 * d);
	}
}
# 결과 실행 시간 메모리 Grader output
1 Correct 68 ms 7760 KB Output is correct
2 Correct 69 ms 9812 KB Output is correct
3 Correct 68 ms 10060 KB Output is correct
4 Correct 72 ms 9808 KB Output is correct
5 Correct 71 ms 9936 KB Output is correct
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 Grader output
1 Correct 68 ms 7760 KB Output is correct
2 Correct 69 ms 9812 KB Output is correct
3 Correct 68 ms 10060 KB Output is correct
4 Correct 72 ms 9808 KB Output is correct
5 Correct 71 ms 9936 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 -
# 결과 실행 시간 메모리 Grader output
1 Correct 68 ms 7760 KB Output is correct
2 Correct 69 ms 9812 KB Output is correct
3 Correct 68 ms 10060 KB Output is correct
4 Correct 72 ms 9808 KB Output is correct
5 Correct 71 ms 9936 KB Output is correct
6 Incorrect 1 ms 432 KB 3rd lines differ - on the 1st token, expected: '129238', found: '176'
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 68 ms 7760 KB Output is correct
2 Correct 69 ms 9812 KB Output is correct
3 Correct 68 ms 10060 KB Output is correct
4 Correct 72 ms 9808 KB Output is correct
5 Correct 71 ms 9936 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 -