# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
991920 | 2024-06-03T12:00:07 Z | elesis | Job Scheduling (IOI19_job) | C++14 | 0 ms | 0 KB |
#include <bits/stdc++.h> #include <job.h> using namespace std; #define int long long int scheduling_cost(vector<int> p, vector<int> u, vector<int> d) { int t = 0 ; int n = p.size(); int ans = 0; for(int i=0;i<n;i++) { ans += t*u[i]; t+=d[i]; } return ans; }