답안 #1031850

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1031850 2024-07-23T08:04:10 Z Mr_Husanboy 메기 농장 (IOI22_fish) C++17
0 / 100
56 ms 13296 KB
#include "fish.h"
#include <bits/stdc++.h>

using namespace std;

#define ff first
#define ss second
#define all(a) (a).begin(), (a).end()
#define ll long long

template<typename T>
int len(T &a){
    return a.size();
}

mt19937 rng(chrono::high_resolution_clock::now().time_since_epoch().count());


long long max_weights(int n, int m, std::vector<int> x, std::vector<int> y,
                      std::vector<int> w) {
    vector<ll> s(n);
    for(int i = 0; i < m; i ++) s[x[i]] += w[i];
    return max(s[0], s[1]);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2904 KB Output is correct
2 Correct 17 ms 4956 KB Output is correct
3 Correct 1 ms 1112 KB Output is correct
4 Correct 0 ms 1116 KB Output is correct
5 Incorrect 56 ms 13296 KB 1st lines differ - on the 1st token, expected: '149814460735479', found: '0'
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '2', found: '1'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 1368 KB Output is correct
2 Incorrect 1 ms 1116 KB 1st lines differ - on the 1st token, expected: '882019', found: '0'
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '3', found: '1'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '3', found: '1'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 348 KB 1st lines differ - on the 1st token, expected: '3', found: '1'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 1368 KB Output is correct
2 Incorrect 1 ms 1116 KB 1st lines differ - on the 1st token, expected: '882019', found: '0'
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2904 KB Output is correct
2 Correct 17 ms 4956 KB Output is correct
3 Correct 1 ms 1112 KB Output is correct
4 Correct 0 ms 1116 KB Output is correct
5 Incorrect 56 ms 13296 KB 1st lines differ - on the 1st token, expected: '149814460735479', found: '0'
6 Halted 0 ms 0 KB -