Submission #210792

#TimeUsernameProblemLanguageResultExecution timeMemory
210792ToMmyDongJob Scheduling (IOI19_job)C++14
5 / 100
110 ms5144 KiB
#include "job.h" #include <vector> typedef long long ll; long long scheduling_cost(std::vector<int> p, std::vector<int> u, std::vector<int> d) { int n = p.size(); ll ans = 0, sum = 0; for (int i=0; i<n; i++) { sum += d[i]; ans += sum * u[i]; } return ans; }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...