結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 23 ms
14,592 KB
testcase_03 AC 49 ms
18,176 KB
testcase_04 AC 21 ms
14,080 KB
testcase_05 AC 28 ms
13,952 KB
testcase_06 AC 47 ms
16,000 KB
testcase_07 AC 93 ms
22,912 KB
testcase_08 AC 58 ms
22,656 KB
testcase_09 AC 61 ms
22,656 KB
testcase_10 AC 40 ms
20,992 KB
testcase_11 AC 111 ms
22,528 KB
testcase_12 AC 63 ms
21,888 KB
testcase_13 AC 50 ms
21,888 KB
testcase_14 AC 46 ms
21,888 KB
testcase_15 AC 32 ms
18,304 KB
testcase_16 AC 19 ms
17,664 KB
testcase_17 AC 95 ms
22,400 KB
testcase_18 AC 86 ms
22,400 KB
testcase_19 AC 29 ms
18,304 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@N,@M,@X,W[M],a;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<ll>(1,N);wt(a<0?-1:a/+X);
0