답안 #833787

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
833787 2023-08-22T08:38:16 Z mindiyak 메기 농장 (IOI22_fish) C++17
0 / 100
108 ms 7248 KB
#include "fish.h"

#include <vector>

using namespace std;

long long max_weights(int N, int M, vector<int> X, vector<int> Y,
                      vector<int> W) {
  long long ans0 = 0,ans1 = 0;
  for(int i=0;i<M;i++){
    if(X[i]==0)ans0+=W[i];
    else ans1+=W[i];
  }

  return max(ans0,ans1);
}
# 결과 실행 시간 메모리 Grader output
1 Correct 27 ms 2140 KB Output is correct
2 Correct 19 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 Correct 60 ms 7248 KB Output is correct
6 Incorrect 108 ms 7248 KB 1st lines differ - on the 1st token, expected: '300000000000000', found: '299997000000000'
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB 1st lines differ - on the 1st token, expected: '2', found: '1'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Incorrect 10 ms 1492 KB 1st lines differ - on the 1st token, expected: '21261825233649', found: '26722445760742'
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB 1st lines differ - on the 1st token, expected: '3', found: '2'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB 1st lines differ - on the 1st token, expected: '3', found: '2'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB 1st lines differ - on the 1st token, expected: '3', found: '2'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 212 KB Output is correct
2 Correct 1 ms 212 KB Output is correct
3 Incorrect 10 ms 1492 KB 1st lines differ - on the 1st token, expected: '21261825233649', found: '26722445760742'
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 27 ms 2140 KB Output is correct
2 Correct 19 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 Correct 60 ms 7248 KB Output is correct
6 Incorrect 108 ms 7248 KB 1st lines differ - on the 1st token, expected: '300000000000000', found: '299997000000000'
7 Halted 0 ms 0 KB -