// 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]);
}
# |
결과 |
실행 시간 |
메모리 |
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 |
# |
결과 |
실행 시간 |
메모리 |
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 |
- |
# |
결과 |
실행 시간 |
메모리 |
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 |
- |
# |
결과 |
실행 시간 |
메모리 |
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 |
- |
# |
결과 |
실행 시간 |
메모리 |
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 |
- |