# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
975725 | 2024-05-05T19:02:37 Z | ALeonidou | 메기 농장 (IOI22_fish) | C++17 | 72 ms | 14060 KB |
#include "fish.h" #include <bits/stdc++.h> using namespace std; #define ll long long #define sz(x) (ll)x.size() #define F first #define S second #define endl "\n" #define pb push_back typedef vector <ll> vi; typedef pair <ll,ll> ii; typedef vector <ii> vii; #define dbg(x) cout<<#x<<": "<<x<<endl; #define dbg2(x,y) cout<<#x<<": "<<x<<" "<<#y<<": "<<y<<endl; #define dbg3(x,y,z) cout<<#x<<": "<<x<<" "<<#y<<": "<<y<<" "<<#z<<": "<<z<<endl; void printVct(vi &v){ for(ll i =0; i<sz(v); i++){ cout<<v[i]<<" "; } cout<<endl; } long long max_weights(int N, int M, std::vector<int> X, std::vector<int> Y, vector<int> W) { ll n = N, m = M; // vi x = X, y = Y, w = W; ll ans = 0; for(ll i =0; i<m; i++){ ans += W[i]; } return ans; } /* 6 4 0 2 5 2 1 4 4 4 1 6 3 3 5 4 0 2 5 1 1 2 4 4 1 3 3 3 */
Compilation message
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 19 ms | 2156 KB | Output is correct |
2 | Correct | 23 ms | 4432 KB | Output is correct |
3 | Correct | 1 ms | 348 KB | Output is correct |
4 | Correct | 0 ms | 348 KB | Output is correct |
5 | Correct | 68 ms | 13672 KB | Output is correct |
6 | Correct | 72 ms | 14060 KB | Output is correct |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Incorrect | 36 ms | 4124 KB | 1st lines differ - on the 1st token, expected: '40604614618209', found: '80901044391025' |
3 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Incorrect | 15 ms | 2396 KB | 1st lines differ - on the 1st token, expected: '21261825233649', found: '26722970331638' |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Incorrect | 1 ms | 348 KB | 1st lines differ - on the 1st token, expected: '4044', found: '6066' |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Incorrect | 1 ms | 348 KB | 1st lines differ - on the 1st token, expected: '4044', found: '6066' |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Incorrect | 1 ms | 348 KB | 1st lines differ - on the 1st token, expected: '4044', found: '6066' |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 348 KB | Output is correct |
2 | Correct | 0 ms | 348 KB | Output is correct |
3 | Incorrect | 15 ms | 2396 KB | 1st lines differ - on the 1st token, expected: '21261825233649', found: '26722970331638' |
4 | Halted | 0 ms | 0 KB | - |
# | 결과 | 실행 시간 | 메모리 | Grader output |
---|---|---|---|---|
1 | Correct | 19 ms | 2156 KB | Output is correct |
2 | Correct | 23 ms | 4432 KB | Output is correct |
3 | Correct | 1 ms | 348 KB | Output is correct |
4 | Correct | 0 ms | 348 KB | Output is correct |
5 | Correct | 68 ms | 13672 KB | Output is correct |
6 | Correct | 72 ms | 14060 KB | Output is correct |
7 | Correct | 0 ms | 348 KB | Output is correct |
8 | Incorrect | 36 ms | 4124 KB | 1st lines differ - on the 1st token, expected: '40604614618209', found: '80901044391025' |
9 | Halted | 0 ms | 0 KB | - |