結果

問題 No.2739 Time is money
ユーザー 👑 p-adicp-adic
提出日時 2024-04-21 19:21:28
言語 cLay
(20240104-1)
結果
AC  
実行時間 115 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 3,213 ms
コンパイル使用メモリ 177,096 KB
実行使用メモリ 22,912 KB
最終ジャッジ日時 2024-04-21 19:21:35
合計ジャッジ時間 5,724 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 23 ms
14,464 KB
testcase_03 AC 52 ms
18,432 KB
testcase_04 AC 24 ms
14,208 KB
testcase_05 AC 31 ms
13,824 KB
testcase_06 AC 53 ms
15,872 KB
testcase_07 AC 102 ms
22,912 KB
testcase_08 AC 63 ms
22,784 KB
testcase_09 AC 76 ms
22,656 KB
testcase_10 AC 55 ms
21,120 KB
testcase_11 AC 115 ms
22,528 KB
testcase_12 AC 72 ms
21,760 KB
testcase_13 AC 65 ms
21,760 KB
testcase_14 AC 59 ms
21,888 KB
testcase_15 AC 33 ms
18,304 KB
testcase_16 AC 20 ms
17,792 KB
testcase_17 AC 101 ms
22,528 KB
testcase_18 AC 106 ms
22,528 KB
testcase_19 AC 29 ms
18,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@N,@M,@X,W[M],a=0;int@(u,v,C,T)[M];rep(j,M)W[j]=C[j]+T[j]*X;wgraph<ll>g;g.setEdge(N+1,M,u,v,W);a=g.getDistT(1,N,a);wt(a?a/+X:-1);
0