結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 25 ms
15,744 KB
testcase_03 AC 70 ms
19,200 KB
testcase_04 AC 22 ms
14,976 KB
testcase_05 AC 41 ms
14,592 KB
testcase_06 AC 48 ms
16,512 KB
testcase_07 AC 112 ms
24,448 KB
testcase_08 AC 109 ms
24,192 KB
testcase_09 AC 106 ms
24,192 KB
testcase_10 AC 39 ms
22,656 KB
testcase_11 AC 109 ms
24,320 KB
testcase_12 AC 56 ms
23,296 KB
testcase_13 AC 64 ms
23,424 KB
testcase_14 AC 52 ms
23,296 KB
testcase_15 AC 30 ms
19,072 KB
testcase_16 AC 23 ms
19,584 KB
testcase_17 AC 96 ms
23,936 KB
testcase_18 AC 97 ms
23,936 KB
testcase_19 AC 29 ms
18,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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