Submission #632190

# Submission time Handle Problem Language Result Execution time Memory
632190 2022-08-19T15:24:00 Z khocengoren Catfish Farm (IOI22_fish) C++17
3 / 100
95 ms 21576 KB
#include<bits/stdc++.h>

#define int long long int
#define F first
#define S second
#define pb push_back

using namespace std;

const int N = 0;

struct Fish {
    int col, row;
    int weight;
};

#undef int
long long max_weights(int N, int M, vector<int> X, vector<int> Y, vector<int> w){
    vector<Fish>fish;
    for(int i=0;i<M;i++){
        fish.pb({X[i],Y[i],w[i]});
    }
    long long sum=0;
    for(auto i:fish){
        sum+=i.weight;
    }
    return sum;
}
# Verdict Execution time Memory Grader output
1 Correct 25 ms 5340 KB Output is correct
2 Correct 32 ms 7232 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 93 ms 21524 KB Output is correct
6 Correct 95 ms 21576 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 1 ms 212 KB Output is correct
2 Incorrect 49 ms 10376 KB 1st lines differ - on the 1st token, expected: '40604614618209', found: '80901044391025'
3 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 16 ms 3132 KB 1st lines differ - on the 1st token, expected: '21261825233649', found: '26722970331638'
4 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 1 ms 212 KB 1st lines differ - on the 1st token, expected: '4044', found: '6066'
4 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 1 ms 212 KB 1st lines differ - on the 1st token, expected: '4044', found: '6066'
4 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 1 ms 212 KB 1st lines differ - on the 1st token, expected: '4044', found: '6066'
4 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 16 ms 3132 KB 1st lines differ - on the 1st token, expected: '21261825233649', found: '26722970331638'
4 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 25 ms 5340 KB Output is correct
2 Correct 32 ms 7232 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Correct 93 ms 21524 KB Output is correct
6 Correct 95 ms 21576 KB Output is correct
7 Correct 1 ms 212 KB Output is correct
8 Incorrect 49 ms 10376 KB 1st lines differ - on the 1st token, expected: '40604614618209', found: '80901044391025'
9 Halted 0 ms 0 KB -