# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
739747 | 2023-05-11T08:05:30 Z | Nonoze | Catfish Farm (IOI22_fish) | C++17 | 83 ms | 7272 KB |
#include "fish.h" #include <bits/stdc++.h> using namespace std; long long max_weights(int n, int m, vector<int> X, vector<int> Y, vector<int> W) { #define int long long bool tacha=true, tachb=true, tachc=true; for (int i = 0; i < m; ++i) { if (X[i]%2) tacha=false; if (X[i]>1) tachb=false; if (Y[i]) tachc=false; } if (tacha) { int ans=0; for (int i = 0; i < m; ++i) ans+=W[i]; return ans; } if (tachb) { int sommegauche=0, sommedroite=0; for (int i = 0; i < m; ++i) { if (X[i]==0) sommegauche+=W[i]; else sommedroite+=W[i]; } return m; return max(sommegauche, sommedroite); } #undef int return 0; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 20 ms | 2124 KB | Output is correct |
2 | Correct | 26 ms | 2640 KB | Output is correct |
3 | Correct | 0 ms | 212 KB | Output is correct |
4 | Correct | 1 ms | 212 KB | Output is correct |
5 | Correct | 83 ms | 7268 KB | Output is correct |
6 | Correct | 82 ms | 7272 KB | Output is correct |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Incorrect | 44 ms | 6956 KB | 1st lines differ - on the 1st token, expected: '40604614618209', found: '161862' |
3 | 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: '0' |
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: '0' |
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: '0' |
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 | 20 ms | 2124 KB | Output is correct |
2 | Correct | 26 ms | 2640 KB | Output is correct |
3 | Correct | 0 ms | 212 KB | Output is correct |
4 | Correct | 1 ms | 212 KB | Output is correct |
5 | Correct | 83 ms | 7268 KB | Output is correct |
6 | Correct | 82 ms | 7272 KB | Output is correct |
7 | Correct | 0 ms | 212 KB | Output is correct |
8 | Incorrect | 44 ms | 6956 KB | 1st lines differ - on the 1st token, expected: '40604614618209', found: '161862' |
9 | Halted | 0 ms | 0 KB | - |