답안 #1056621

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1056621 2024-08-13T10:21:42 Z MercubytheFirst 메기 농장 (IOI22_fish) C++17
0 / 100
62 ms 21084 KB
#include "fish.h"
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll inf = 1e9 + 37;


long long max_weights(signed N, signed M, vector<signed> X, vector<signed> Y, vector<signed> W) {
  ll a[2]{};
  for(int i = 0; i < M; ++i) {
    a[X[i]] += W[i];
  }
  return max(a[0], a[1]);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 2136 KB Output is correct
2 Correct 15 ms 4292 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Runtime error 62 ms 21084 KB Execution killed with signal 11
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 0 ms 348 KB Output is correct
2 Runtime error 1 ms 348 KB Execution killed with signal 11
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 0 ms 348 KB Output is correct
2 Runtime error 1 ms 348 KB Execution killed with signal 11
3 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 11 ms 2136 KB Output is correct
2 Correct 15 ms 4292 KB Output is correct
3 Correct 0 ms 348 KB Output is correct
4 Correct 0 ms 348 KB Output is correct
5 Runtime error 62 ms 21084 KB Execution killed with signal 11
6 Halted 0 ms 0 KB -