# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
635500 | OttoTheDino | 메기 농장 (IOI22_fish) | C++17 | 750 ms | 133236 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "fish.h"
#include <bits/stdc++.h>
using namespace std;
#define rep(i,s,e) for (ll i = s; i <= e; ++i)
#define rrep(i,s,e) for (ll i = s; i >= e; --i)
#define len(v) (ll)v.size()
#define pb push_back
#define all(v) v.begin(), v.end()
#define fi first
#define se second
typedef long long ll;
typedef vector<int> vi;
typedef pair<ll,ll> ii;
typedef pair<ll,ll> pll;
ll max_weights(int n, int m, vi X, vi Y, vi W) {
bool done[n+5] = {};
vector<ll> check[n+5], fish[n+5];
unordered_map<ll,ll> w[n+5], dp[n+5][2];
rep (i,0,m-1) {
fish[X[i]+1].pb(Y[i]+1);
w[X[i]+1][Y[i]+1] = W[i];
check[X[i]+1].pb(Y[i]);
if (Y[i]==0) done[X[i]+1] = 1;
}
rep (i,0,n) {
if (i) check[i].pb(n);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |