結果

問題 No.1301 Strange Graph Shortest Path
ユーザー yuruhiyayuruhiya
提出日時 2021-01-05 14:53:08
言語 cLay
(20240104-1)
結果
AC  
実行時間 245 ms / 3,000 ms
コード長 231 bytes
コンパイル時間 3,886 ms
コンパイル使用メモリ 176,424 KB
実行使用メモリ 45,860 KB
最終ジャッジ日時 2023-09-19 02:01:41
合計ジャッジ時間 12,539 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 181 ms
35,132 KB
testcase_03 AC 142 ms
30,972 KB
testcase_04 AC 241 ms
41,312 KB
testcase_05 AC 134 ms
33,736 KB
testcase_06 AC 211 ms
37,344 KB
testcase_07 AC 188 ms
35,228 KB
testcase_08 AC 144 ms
31,160 KB
testcase_09 AC 207 ms
36,224 KB
testcase_10 AC 139 ms
31,448 KB
testcase_11 AC 210 ms
37,432 KB
testcase_12 AC 219 ms
38,596 KB
testcase_13 AC 176 ms
35,560 KB
testcase_14 AC 191 ms
34,876 KB
testcase_15 AC 188 ms
34,232 KB
testcase_16 AC 245 ms
41,800 KB
testcase_17 AC 196 ms
36,724 KB
testcase_18 AC 172 ms
33,768 KB
testcase_19 AC 218 ms
38,028 KB
testcase_20 AC 219 ms
39,132 KB
testcase_21 AC 185 ms
36,092 KB
testcase_22 AC 224 ms
40,552 KB
testcase_23 AC 180 ms
35,968 KB
testcase_24 AC 220 ms
38,888 KB
testcase_25 AC 236 ms
39,820 KB
testcase_26 AC 198 ms
35,880 KB
testcase_27 AC 208 ms
37,028 KB
testcase_28 AC 146 ms
32,892 KB
testcase_29 AC 241 ms
42,692 KB
testcase_30 AC 221 ms
39,052 KB
testcase_31 AC 233 ms
39,952 KB
testcase_32 AC 2 ms
4,376 KB
testcase_33 AC 88 ms
45,860 KB
testcase_34 AC 175 ms
30,920 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{
	int@n,@m;
	minCostFlow<ll,ll> g;
	g.malloc(n);
	g.init(n);
	rep(m){
		int@u,@v;ll@c,@d;u--;v--;
		g.addEdge(u,v,1,c);
		g.addEdge(v,u,1,c);
		g.addEdge(u,v,1,d);
		g.addEdge(v,u,1,d);
	}
	ll f,c;
	g.solve(0,n-1,f,c,2);
	wt(c);
}
0