Submission #724109

# Submission time Handle Problem Language Result Execution time Memory
724109 2023-04-14T17:50:59 Z vjudge1 Catfish Farm (IOI22_fish) C++17
0 / 100
91 ms 7392 KB
// WA: only take all fish in column 0 or column 1
#include "fish.h"

#include <bits/stdc++.h>
using namespace std;

long long max_weights(int, int M, std::vector<int> X, std::vector<int>,
                      std::vector<int> W) {
  long long ret = 0;
  for (int x = 0 ; x < 2 ; x++) {
    long long total_weight = 0;
    for (int i = 0 ; i < M ; i++) {
      if (X[i] == x) {
        total_weight += W[i];
      }
    }
    ret = max(ret, total_weight);
  }
  return ret;
}
# Verdict Execution time Memory Grader output
1 Correct 24 ms 2260 KB Output is correct
2 Correct 36 ms 2620 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Incorrect 91 ms 7392 KB 1st lines differ - on the 1st token, expected: '149814460735479', found: '0'
6 Halted 0 ms 0 KB -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB 1st lines differ - on the 1st token, expected: '882019', found: '0'
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB 1st lines differ - on the 1st token, expected: '3', found: '1'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB 1st lines differ - on the 1st token, expected: '3', found: '1'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB 1st lines differ - on the 1st token, expected: '3', found: '1'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 0 ms 212 KB Output is correct
2 Incorrect 1 ms 212 KB 1st lines differ - on the 1st token, expected: '882019', found: '0'
3 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 24 ms 2260 KB Output is correct
2 Correct 36 ms 2620 KB Output is correct
3 Correct 0 ms 212 KB Output is correct
4 Correct 1 ms 212 KB Output is correct
5 Incorrect 91 ms 7392 KB 1st lines differ - on the 1st token, expected: '149814460735479', found: '0'
6 Halted 0 ms 0 KB -