版本比较
Zelda_max的代码模板(持续更新)
正文
增加 3 行删除 3 行
96 行未改动9798991001011011021031041059 行未改动115116117118119119120121122123407 行未改动全部展开531532533534535535536537538539356 行未改动全部展开96 行未改动 st[start] = 1; for(int i = 1; i < n; i++) { int t = -1; for(int j = 1; j <= n; j++) { if(!st[j] && (t == -1 || dist[j] < dist[t])) t = j; if(!st[j] && (t == -1 || dist[j] < dist[t])) t = j; } st[t] = 1; for(int j = 1; j <= n; j++) { if(!st[j] && dist[t] + g[t][j] < dist[j]) {9 行未改动 g[i][j] = 1e9; } g[i][i] = 0; }
dijkstra(s); return 0; } ```407 行未改动全部展开 return a[n] * b[k] % p * b[n-k] % p; } return comb(n/p, k/p, p) * comb(n%p, k%p, p) % p; }
signed main() { int t; cin >> t; while(t--) {356 行未改动全部展开