Link: 传送门 A: 分层图最短路(其实就是最短路转移时多记录一维的数据 #include <bits/stdc.h>using namespace std;
#define X first
#define Y second
typedef double db;
typedef long long ll;
typedef pair<int,int> P;
const int MAXN105;
int n,…
#练习函数调用。
#!/usr/bin/python
-- coding: UTF-8 --
def hello_world(): print (‘hello world’)
def three_hellos(): for i in range(3): hello_world() if name ‘main’: three_hellos() #1:__name__是一个变量。前后加了下划线是因为是因为这是系统…