제출 #769452

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
7694522023-06-29 15:12:10AloraCommuter Pass (JOI18_commuter_pass)C++17
100 / 100
267 ms32304 KiB
#include <bits/stdc++.h>
#define name "cownav"
#define fi(i,a,b) for(int i = a; i <= b; i++)
#define fid(i,a,b) for(int i = a; i >= b; i--)
#define ll long long
#define int long long
#define f first
#define se second
#define pii pair<ll, int>
#define getbit(i, j) ((i >> j) & 1)
#define pb push_back
#define all(v) v.begin(), v.end()
#define maxn 200005
const int M = 1e9 + 7;
using namespace std;
int n, m, S, T, U, V;
vector <pii> g[maxn];
vector <vector<ll>> dp(5, vector<ll>(maxn, 1e18));
void dij(int x, vector <ll> &L){
L[x] = 0;
priority_queue <pii> q;
q.push({0, x});
while(q.size()){
ll h = -q.top().f;
int u = q.top().se; q.pop();
if(h != L[u]) continue;
for(auto e: g[u]){
int v = e.f, w = e.se;
if(L[v] > L[u] + w){
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

컴파일 시 표준 에러 (stderr) 메시지

commuter_pass.cpp: In function 'int main()':
commuter_pass.cpp:3:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    3 | #define fi(i,a,b) for(int i = a; i <= b; i++)
      |                   ^~~
commuter_pass.cpp:67:5: note: in expansion of macro 'fi'
   67 |     fi(i, 1, n) L[i] = -1; sol(S, 0, 2);
      |     ^~
commuter_pass.cpp:67:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   67 |     fi(i, 1, n) L[i] = -1; sol(S, 0, 2);
      |                            ^~~
commuter_pass.cpp:3:19: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    3 | #define fi(i,a,b) for(int i = a; i <= b; i++)
      |                   ^~~
commuter_pass.cpp:68:5: note: in expansion of macro 'fi'
   68 |     fi(i, 1, n) L[i] = -1; sol(S, 0, 3);
      |     ^~
commuter_pass.cpp:68:28: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   68 |     fi(i, 1, n) L[i] = -1; sol(S, 0, 3);
      |                            ^~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...