# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1022140 | 2024-07-13T10:27:32 Z | edogawa_something | Distributing Candies (IOI21_candies) | C++17 | 5000 ms | 10832 KB |
#include "candies.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; typedef vector<ll> vii; typedef pair<ll,ll> pii; #define pb push_back #define F first #define S second const ll M=2e5+10; vector<int> distribute_candies(vector<int>c,vector<int>l,vector<int>r,vector<int>v){ vector<int>ans(c.size()); for(int i=0;i<l.size();i++){ for(int j=l[i];j<=r[i];j++){ ans[j]+=v[i]; ans[j]=max(ans[j],0); ans[j]=min(ans[j],c[j]); } } return ans; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 1 ms | 348 KB | Output is correct |
4 | Correct | 1 ms | 472 KB | Output is correct |
5 | Correct | 2 ms | 444 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Execution timed out | 5093 ms | 7400 KB | Time limit exceeded |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 1 ms | 348 KB | Output is correct |
2 | Correct | 129 ms | 5152 KB | Output is correct |
3 | Correct | 140 ms | 3844 KB | Output is correct |
4 | Execution timed out | 5052 ms | 7248 KB | Time limit exceeded |
5 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 315 ms | 7652 KB | Output is correct |
4 | Correct | 315 ms | 3928 KB | Output is correct |
5 | Execution timed out | 5034 ms | 10832 KB | Time limit exceeded |
6 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 344 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Correct | 1 ms | 348 KB | Output is correct |
4 | Correct | 1 ms | 472 KB | Output is correct |
5 | Correct | 2 ms | 444 KB | Output is correct |
6 | Execution timed out | 5093 ms | 7400 KB | Time limit exceeded |
7 | Halted | 0 ms | 0 KB | - |