結果

問題 No.2739 Time is money
ユーザー tailstails
提出日時 2024-04-20 18:54:21
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 138 bytes
コンパイル時間 2,999 ms
コンパイル使用メモリ 177,216 KB
実行使用メモリ 21,376 KB
最終ジャッジ日時 2024-04-20 18:54:28
合計ジャッジ時間 5,282 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 28 ms
14,080 KB
testcase_03 WA -
testcase_04 AC 23 ms
13,696 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 54 ms
20,352 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 23 ms
16,896 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 30 ms
17,024 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,-x);
wt(z<0?-1:z/+x);
0