답안 #1002335

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1002335 2024-06-19T12:52:24 Z overwatch9 메기 농장 (IOI22_fish) C++17
0 / 100
37 ms 7076 KB
#include "fish.h"

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
// vector <vector <pair <int, ll>>> fish;
// vector <vector <ll>> pfx;
// int n, m;
// ll get_sum(int l, int r, int col) {
//     int it = upper_bound(fish[col].begin(), fish[col].end(), l) - fish[col].begin();
//     it--;
//     int it2 = upper_bound(fish[col].begin(), fish[col].end(), r) - fish[col].begin();
//     it2--;
//     return pfx[col][it2] - pfx[col][it];
// }
vector <vector <ll>> dp;
ll max_weights(int N, int M, vector<int> X, vector<int> Y, vector<int> W) {
    // n = N;
    // m = M;
    // fish.resize(N+1);
    // pfx.resize(N+1);
    // dp = vector <vector <ll>> (N+1, vector <ll> (N+1, -1));
    ll ans = 0;
    for (int i = 0; i < N; i++) {
        // fish[X[i]+1].push_back({Y[i]+1, W[i]});
        ans += W[i];
    }
    return ans;
    // for (int i = 1; i <= N; i++) {
    //     fish[i].push_back(0);
    //     sort(fish[i].begin(), fish[i].end());
    //     for (int j = 1; j < fish[i].size(); j++)
    //         pfx[i][j] = pfx[i][j-1] + fish[i][j].second;
    // }
    
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 13 ms 3676 KB 1st lines differ - on the 1st token, expected: '40313272768926', found: '44863775616942'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 348 KB Output is correct
2 Incorrect 37 ms 7076 KB 1st lines differ - on the 1st token, expected: '40604614618209', found: '44917223725239'
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 436 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '4044', found: '6066'
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 436 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '4044', found: '6066'
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 436 KB Output is correct
2 Correct 0 ms 348 KB Output is correct
3 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '4044', found: '6066'
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 348 KB Execution killed with signal 11
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 13 ms 3676 KB 1st lines differ - on the 1st token, expected: '40313272768926', found: '44863775616942'
2 Halted 0 ms 0 KB -