Submission #864029

# Submission time Handle Problem Language Result Execution time Memory
864029 2023-10-21T17:32:48 Z Ice_man Truck Driver (IOI23_deliveries) C++17
8 / 100
82 ms 8012 KB
#include "deliveries.h"
#include <iostream>
#include <vector>

#define maxn 100005
#define maxq 300005
#define INF 1000000010
#define endl '\n'


using namespace std;

int n;
int pomm[maxn];
int pomm2[maxn];

void init(int N, vector<int> U, vector<int> V, vector<int> T, vector<int> W)
{
    n = N;
    W[0]++;
    for(int i = 0; i < n; i++){ pomm[i] = W[i];pomm2[i] = T[i];}
}


long long max_time(int S , int X)
{
    pomm[S] = X;
    if(S == 0) pomm[S]++;
    int minn = min(pomm[0] , pomm[1]);
    return 2 * pomm2[0] * minn;
}


# Verdict Execution time Memory Grader output
1 Correct 65 ms 7732 KB Output is correct
2 Correct 67 ms 7760 KB Output is correct
3 Correct 82 ms 7764 KB Output is correct
4 Correct 66 ms 7824 KB Output is correct
5 Correct 66 ms 8012 KB Output is correct
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 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 65 ms 7732 KB Output is correct
2 Correct 67 ms 7760 KB Output is correct
3 Correct 82 ms 7764 KB Output is correct
4 Correct 66 ms 7824 KB Output is correct
5 Correct 66 ms 8012 KB Output is correct
6 Incorrect 0 ms 348 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 65 ms 7732 KB Output is correct
2 Correct 67 ms 7760 KB Output is correct
3 Correct 82 ms 7764 KB Output is correct
4 Correct 66 ms 7824 KB Output is correct
5 Correct 66 ms 8012 KB Output is correct
6 Incorrect 0 ms 348 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 65 ms 7732 KB Output is correct
2 Correct 67 ms 7760 KB Output is correct
3 Correct 82 ms 7764 KB Output is correct
4 Correct 66 ms 7824 KB Output is correct
5 Correct 66 ms 8012 KB Output is correct
6 Incorrect 0 ms 348 KB 3rd lines differ - on the 1st token, expected: '1627540', found: '204'
7 Halted 0 ms 0 KB -