版本比较
P9126 [USACO23FEB] Moo Route II S 题解
正文
增加 1 行删除 1 行
51 行未改动5253545556565758596051 行未改动 } for(int i = 1; i <= n; i++) cin>>a[i]; for(int i = 1; i <= n; i++) sort(g[i].begin(), g[i].end()); search(1); for(int i = 1; i <= n; i++) for(int i = 1; i <= n; i++) if(d[i] != INF) cout<<d[i]<<endl; else cout<<-1<<endl;}```