Submission #834681

# Submission time Handle Problem Language Result Execution time Memory
834681 2023-08-22T17:03:30 Z GordonRemzi007 Catfish Farm (IOI22_fish) C++17
0 / 100
71 ms 7280 KB
#include <iostream>
#include <vector>
#define ll long long

using namespace std;

ll max_weights(int n, int m, vector<int> x, vector<int> y, vector<int> w) {
    ll r0 = 0, r1 = 0;
    for(int i = 0; i < m; i++) {
        if(x[i]) r1+=w[i];
        else r0 += w[i];
    }
    return max(r0, r1);
}
# Verdict Execution time Memory Grader output
1 Correct 19 ms 2156 KB Output is correct
2 Correct 22 ms 2640 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 71 ms 7276 KB Output is correct
6 Incorrect 68 ms 7280 KB 1st lines differ - on the 1st token, expected: '300000000000000', found: '299997000000000'
7 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 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Incorrect 12 ms 1492 KB 1st lines differ - on the 1st token, expected: '21261825233649', found: '26722445760742'
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: '2'
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: '2'
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: '2'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 0 ms 212 KB Output is correct
3 Incorrect 12 ms 1492 KB 1st lines differ - on the 1st token, expected: '21261825233649', found: '26722445760742'
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 19 ms 2156 KB Output is correct
2 Correct 22 ms 2640 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 71 ms 7276 KB Output is correct
6 Incorrect 68 ms 7280 KB 1st lines differ - on the 1st token, expected: '300000000000000', found: '299997000000000'
7 Halted 0 ms 0 KB -