#include "fish.h"
#include <vector>
#define ll long long
using namespace std;
long long max_weights(int N, int M, vector<int> X, vector<int> Y,
vector<int> W) {
vector<ll> RSM(N,0);
ll ans = 0;
for(int i=0;i<M;i++){
RSM[X[i]] += W[i];
ans = max(ans,RSM[X[i]]);
}
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
16 ms |
3284 KB |
Output is correct |
2 |
Correct |
20 ms |
3912 KB |
Output is correct |
3 |
Correct |
1 ms |
980 KB |
Output is correct |
4 |
Correct |
1 ms |
980 KB |
Output is correct |
5 |
Incorrect |
60 ms |
8776 KB |
1st lines differ - on the 1st token, expected: '149814460735479', found: '44945481875572' |
6 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
1st lines differ - on the 1st token, expected: '2', found: '1' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
980 KB |
Output is correct |
2 |
Correct |
1 ms |
980 KB |
Output is correct |
3 |
Incorrect |
12 ms |
2692 KB |
1st lines differ - on the 1st token, expected: '21261825233649', found: '999995196' |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
1st lines differ - on the 1st token, expected: '3', found: '1' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
1st lines differ - on the 1st token, expected: '3', found: '1' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
1st lines differ - on the 1st token, expected: '3', found: '1' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
980 KB |
Output is correct |
2 |
Correct |
1 ms |
980 KB |
Output is correct |
3 |
Incorrect |
12 ms |
2692 KB |
1st lines differ - on the 1st token, expected: '21261825233649', found: '999995196' |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
16 ms |
3284 KB |
Output is correct |
2 |
Correct |
20 ms |
3912 KB |
Output is correct |
3 |
Correct |
1 ms |
980 KB |
Output is correct |
4 |
Correct |
1 ms |
980 KB |
Output is correct |
5 |
Incorrect |
60 ms |
8776 KB |
1st lines differ - on the 1st token, expected: '149814460735479', found: '44945481875572' |
6 |
Halted |
0 ms |
0 KB |
- |