답안 #625973

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
625973 2022-08-11T05:23:40 Z sword060 메기 농장 (IOI22_fish) C++17
3 / 100
93 ms 7272 KB
#include <bits/stdc++.h>
#include "fish.h"
using namespace std;
long long max_weights(int x,int k,vector<int> a,vector<int> b,vector<int> c){
  long long ans=0,p[2];p[0]=0;p[1]=0;
  for(int i=0;i<k;i++)p[a[i]%2]+=c[i];
  return max(p[0],p[1]);
}

Compilation message

fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:5:13: warning: unused variable 'ans' [-Wunused-variable]
    5 |   long long ans=0,p[2];p[0]=0;p[1]=0;
      |             ^~~
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 2148 KB Output is correct
2 Correct 27 ms 2636 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 252 KB Output is correct
5 Correct 93 ms 7272 KB Output is correct
6 Correct 90 ms 7264 KB Output is correct
# 결과 실행 시간 메모리 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 0 ms 212 KB Output is correct
2 Correct 1 ms 228 KB Output is correct
3 Incorrect 17 ms 1460 KB 1st lines differ - on the 1st token, expected: '21261825233649', found: '13412238152019'
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 228 KB Output is correct
3 Incorrect 17 ms 1460 KB 1st lines differ - on the 1st token, expected: '21261825233649', found: '13412238152019'
4 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 21 ms 2148 KB Output is correct
2 Correct 27 ms 2636 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 0 ms 252 KB Output is correct
5 Correct 93 ms 7272 KB Output is correct
6 Correct 90 ms 7264 KB Output is correct
7 Incorrect 1 ms 212 KB 1st lines differ - on the 1st token, expected: '2', found: '1'
8 Halted 0 ms 0 KB -