Submission #839571

#TimeUsernameProblemLanguageResultExecution timeMemory
839571model_codeTruck Driver (IOI23_deliveries)C++17
8 / 100
96 ms7692 KiB
// 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]); }
#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...