#include "job.h"
#include <bits/stdc++.h>
#define ll long long
#define fast cin.tie(0);cout.tie(0);
#define order ios::sync_with_stdio(0);ios_base::sync_with_stdio(0);
#define pb push_back
using namespace std;
long long scheduling_cost(vector<int> p,vector<int> u,vector<int> d)
{
int n=p.size();
ll sum=0,ans=0;
for(int i=0;i<n;i++)
{
sum+=d[i];
ans+=sum*u[i];
}
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
256 KB |
Output is correct |
2 |
Correct |
0 ms |
256 KB |
Output is correct |
3 |
Correct |
1 ms |
256 KB |
Output is correct |
4 |
Correct |
1 ms |
384 KB |
Output is correct |
5 |
Correct |
21 ms |
2228 KB |
Output is correct |
6 |
Correct |
43 ms |
4216 KB |
Output is correct |
7 |
Correct |
63 ms |
6356 KB |
Output is correct |
8 |
Correct |
85 ms |
8184 KB |
Output is correct |
9 |
Correct |
86 ms |
8184 KB |
Output is correct |
10 |
Correct |
85 ms |
8196 KB |
Output is correct |
11 |
Correct |
0 ms |
256 KB |
Output is correct |
12 |
Correct |
86 ms |
8212 KB |
Output is correct |
13 |
Correct |
83 ms |
8188 KB |
Output is correct |
14 |
Correct |
85 ms |
8184 KB |
Output is correct |
15 |
Correct |
86 ms |
8184 KB |
Output is correct |
16 |
Correct |
87 ms |
8440 KB |
Output is correct |
17 |
Correct |
85 ms |
8184 KB |
Output is correct |
18 |
Correct |
87 ms |
8184 KB |
Output is correct |
19 |
Correct |
85 ms |
8184 KB |
Output is correct |
20 |
Correct |
87 ms |
8184 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
256 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
256 KB |
Output is correct |
2 |
Correct |
0 ms |
256 KB |
Output is correct |
3 |
Correct |
1 ms |
256 KB |
Output is correct |
4 |
Correct |
1 ms |
384 KB |
Output is correct |
5 |
Correct |
21 ms |
2228 KB |
Output is correct |
6 |
Correct |
43 ms |
4216 KB |
Output is correct |
7 |
Correct |
63 ms |
6356 KB |
Output is correct |
8 |
Correct |
85 ms |
8184 KB |
Output is correct |
9 |
Correct |
86 ms |
8184 KB |
Output is correct |
10 |
Correct |
85 ms |
8196 KB |
Output is correct |
11 |
Correct |
0 ms |
256 KB |
Output is correct |
12 |
Correct |
86 ms |
8212 KB |
Output is correct |
13 |
Correct |
83 ms |
8188 KB |
Output is correct |
14 |
Correct |
85 ms |
8184 KB |
Output is correct |
15 |
Correct |
86 ms |
8184 KB |
Output is correct |
16 |
Correct |
87 ms |
8440 KB |
Output is correct |
17 |
Correct |
85 ms |
8184 KB |
Output is correct |
18 |
Correct |
87 ms |
8184 KB |
Output is correct |
19 |
Correct |
85 ms |
8184 KB |
Output is correct |
20 |
Correct |
87 ms |
8184 KB |
Output is correct |
21 |
Incorrect |
1 ms |
256 KB |
Output isn't correct |
22 |
Halted |
0 ms |
0 KB |
- |