Submission #916231

#TimeUsernameProblemLanguageResultExecution timeMemory
916231kachuTruck Driver (IOI23_deliveries)C++17
8 / 100
72 ms10060 KiB
#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); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...