Submission #975718

# Submission time Handle Problem Language Result Execution time Memory
975718 2024-05-05T18:58:12 Z ALeonidou Catfish Farm (IOI22_fish) C++17
0 / 100
37 ms 7084 KB
#include "fish.h"
#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define sz(x) (ll)x.size()
#define F first
#define S second
#define endl "\n"
#define pb push_back

typedef vector <ll> vi;
typedef pair <ll,ll> ii;
typedef vector <ii> vii;

#define dbg(x) cout<<#x<<": "<<x<<endl;
#define dbg2(x,y) cout<<#x<<": "<<x<<" "<<#y<<": "<<y<<endl;
#define dbg3(x,y,z) cout<<#x<<": "<<x<<" "<<#y<<": "<<y<<" "<<#z<<": "<<z<<endl;

void printVct(vi &v){
    for(ll i =0; i<sz(v); i++){
        cout<<v[i]<<" ";
    }
    cout<<endl;
}


long long max_weights(int N, int M, std::vector<int> X, std::vector<int> Y, vector<int> W) {
    ll n = N, m = M;

    ll ans = 0;
    for(ll i =0; i<n; i++){
        ans += W[i];
    }

    return ans;
}

Compilation message

fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:29:15: warning: unused variable 'm' [-Wunused-variable]
   29 |     ll n = N, m = M;
      |               ^
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 3664 KB 1st lines differ - on the 1st token, expected: '40313272768926', found: '44863775616942'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 348 KB Output is correct
2 Incorrect 37 ms 7084 KB 1st lines differ - on the 1st token, expected: '40604614618209', found: '44917223725239'
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 348 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Incorrect 1 ms 344 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 348 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Incorrect 1 ms 344 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 348 KB Output is correct
2 Correct 0 ms 344 KB Output is correct
3 Incorrect 1 ms 344 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 Runtime error 1 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 18 ms 3664 KB 1st lines differ - on the 1st token, expected: '40313272768926', found: '44863775616942'
2 Halted 0 ms 0 KB -