# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
374086 | i_am_noob | 항공 노선도 (JOI18_airline) | C++17 | 891 ms | 29804 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "Alicelib.h"
#include <bits/stdc++.h>
using namespace std;
#define rep(a) rep1(i,a)
#define rep1(i,a) rep2(i,0,a)
#define rep2(i,b,a) for(int i=(b); i<((int)(a)); i++)
#define rep3(i,b,a) for(int i=(b); i>=((int)(a)); i--)
#define all(a) a.begin(),a.end()
#define pii pair<int,int>
#define pb push_back
#define inf 1010000000
#define eps 1e-9
#define sz(a) ((int)a.size())
#define pow2(x) (1ll<<(x))
void Alice( int n, int m, int a[], int b[] ){
//InitG( 3, 2 );
//MakeG( 1, 2 );
//MakeG( 1, 3 );
vector<pii> edges;
rep(m) edges.pb({a[i],b[i]});
rep(n) rep1(j,10) if(i&pow2(j)) edges.pb({i,n+j});
rep(9) edges.pb({n+i,n+i+1});
rep(n) edges.pb({i,n+10});
rep(10) edges.pb({n+i,n+10}),edges.pb({n+i,n+11});
InitG(n+12,sz(edges));
rep(sz(edges)) MakeG(i,edges[i].first,edges[i].second);
}
컴파일 시 표준 에러 (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... |