# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
792546 | vjudge1 | Two Currencies (JOI23_currencies) | C++14 | 749 ms | 93676 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define ll long long
#define fi first
#define se second
using namespace std ;
const ll N = 1e5, NS = 2e3 ;
bool flag1 ;
ll n, m, q, ans, p[N + 1], c[N + 1], ind[N + 1], pw[2 * N + 1], dist1[N + 1], dist[N + 1] ;
pair<ll, ll> mn[2 * N + 1][20] ;
map<pair<ll, ll>, vector<ll>> mp ;
vector<ll> now, tree[NS + 1] ;
vector<pair<pair<ll, ll>, ll>> road ;
vector<pair<ll, ll>> v1, v[N + 1] ;
void dfs_perebor(ll city, ll last, ll t, ll x, ll y)
{
if(city == t)
{
ll kol = 0 ;
sort(now.begin(), now.end()) ;
for(ll i : now)
{
if(y >= i)
y -= i, kol++ ;
else
break ;
}
ans = max(-1ll, x - ((ll)now.size() - kol)) ;
return ;
}
for(ll i : tree[city])
컴파일 시 표준 에러 (stderr) 메시지
# | 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... |