結果

問題 No.2739 Time is money
ユーザー tailstails
提出日時 2024-04-20 18:58:21
言語 cLay
(20240104-1)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 3,755 ms
コンパイル使用メモリ 179,416 KB
実行使用メモリ 22,016 KB
最終ジャッジ日時 2024-04-20 18:58:28
合計ジャッジ時間 6,189 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 21 ms
14,208 KB
testcase_03 AC 42 ms
17,664 KB
testcase_04 AC 19 ms
13,696 KB
testcase_05 AC 28 ms
13,440 KB
testcase_06 AC 45 ms
15,104 KB
testcase_07 AC 70 ms
22,016 KB
testcase_08 AC 48 ms
21,888 KB
testcase_09 AC 52 ms
21,888 KB
testcase_10 AC 35 ms
20,352 KB
testcase_11 AC 85 ms
21,888 KB
testcase_12 AC 44 ms
20,992 KB
testcase_13 AC 57 ms
21,120 KB
testcase_14 AC 39 ms
21,120 KB
testcase_15 AC 30 ms
17,280 KB
testcase_16 AC 19 ms
16,768 KB
testcase_17 AC 76 ms
21,760 KB
testcase_18 AC 75 ms
21,632 KB
testcase_19 AC 27 ms
17,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

wgraph<ll>g;
int@n,@m,@x,@(u--,v--,ll c,t)[m];
c[0..m-1]+=t[0..]*(ll)x;
g.setEdge(n,m,u,v,c);
ll z=g.getDistT(0,n-1,(ll)-1);
wt(z<0?-1:z/+x);
0