結果

問題 No.1601 With Animals into Institute
ユーザー tailstails
提出日時 2021-07-11 04:17:42
言語 cLay
(20240104-1)
結果
AC  
実行時間 266 ms / 3,000 ms
コード長 361 bytes
コンパイル時間 3,679 ms
コンパイル使用メモリ 178,240 KB
実行使用メモリ 34,880 KB
最終ジャッジ日時 2023-09-19 02:31:27
合計ジャッジ時間 12,057 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,384 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,380 KB
testcase_03 AC 3 ms
4,384 KB
testcase_04 AC 3 ms
4,380 KB
testcase_05 AC 3 ms
4,384 KB
testcase_06 AC 250 ms
33,600 KB
testcase_07 AC 253 ms
33,308 KB
testcase_08 AC 266 ms
33,324 KB
testcase_09 AC 260 ms
33,572 KB
testcase_10 AC 251 ms
33,436 KB
testcase_11 AC 257 ms
33,444 KB
testcase_12 AC 263 ms
34,880 KB
testcase_13 AC 261 ms
34,680 KB
testcase_14 AC 260 ms
33,608 KB
testcase_15 AC 253 ms
33,604 KB
testcase_16 AC 253 ms
33,412 KB
testcase_17 AC 252 ms
34,516 KB
testcase_18 AC 3 ms
4,380 KB
testcase_19 AC 3 ms
4,376 KB
testcase_20 AC 3 ms
4,380 KB
testcase_21 AC 3 ms
4,380 KB
testcase_22 AC 4 ms
4,376 KB
testcase_23 AC 3 ms
4,380 KB
testcase_24 AC 3 ms
4,380 KB
testcase_25 AC 3 ms
4,380 KB
testcase_26 AC 3 ms
4,376 KB
testcase_27 AC 2 ms
4,380 KB
testcase_28 AC 2 ms
4,380 KB
testcase_29 AC 2 ms
4,376 KB
testcase_30 AC 1 ms
4,376 KB
testcase_31 AC 2 ms
4,380 KB
testcase_32 AC 2 ms
4,380 KB
testcase_33 AC 1 ms
4,380 KB
testcase_34 AC 2 ms
4,376 KB
testcase_35 AC 2 ms
4,380 KB
testcase_36 AC 2 ms
4,388 KB
testcase_37 AC 2 ms
4,384 KB
testcase_38 AC 2 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

VI ea,eb,ew;
void add(ll a,ll b,ll w){
	ea.push_back(a);
	eb.push_back(b);
	ew.push_back(w);
}

{
	ll@n,@m;
	rep(m){
		ll@a,@b,@c,@x;
		x=x?0:n;
		add(a+n,b+x,c);
		add(b+n,a+x,c);
		add(a,b,c);
		add(b,a,c);
	}
	wgraph<int>g;
	g.setDirectEdge(2n+1,ea.size(),ea.data(),eb.data(),ew.data());
	vector<ll> r(2n+1);
	g.getDist(2n,r.data());
	rep(i,1,n) wt(r[i]);
}
0