답안 #729818

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
729818 2023-04-24T16:14:41 Z caganyanmaz 메기 농장 (IOI22_fish) C++17
0 / 100
93 ms 14692 KB
#include <bits/stdc++.h>
using namespace std;

int64_t max_weights(int n, int m, vector<int> x, vector<int> y, vector<int> w)
{
        int64_t l_sum = 0;
        int64_t r_sum = 0;
        for (int i = 0; i < m; i++)
                if (x[i] == 0)
                        l_sum += w[i];
                else if (x[i] == 1)
                        r_sum += w[i];
                else
                        assert(false);
        return max(l_sum, r_sum);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 2124 KB Output is correct
2 Correct 26 ms 2628 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Runtime error 93 ms 14692 KB Execution killed with signal 6
6 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB 1st lines differ - on the 1st token, expected: '2', found: '1'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Runtime error 1 ms 468 KB Execution killed with signal 6
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 352 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 352 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 352 KB Execution killed with signal 6
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 1 ms 212 KB Output is correct
2 Runtime error 1 ms 468 KB Execution killed with signal 6
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 2124 KB Output is correct
2 Correct 26 ms 2628 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 212 KB Output is correct
5 Runtime error 93 ms 14692 KB Execution killed with signal 6
6 Halted 0 ms 0 KB -