結果
問題 |
No.409 ダイエット
|
ユーザー |
![]() |
提出日時 | 2017-02-16 20:57:54 |
言語 | Ruby (3.4.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 144 bytes |
コンパイル時間 | 156 ms |
コンパイル使用メモリ | 7,552 KB |
実行使用メモリ | 826,460 KB |
最終ジャッジ日時 | 2024-12-30 00:39:33 |
合計ジャッジ時間 | 163,765 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 TLE * 54 MLE * 3 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n,A,B,w,*c=`dd`.split.map &:to_i def d c,s x,*y,z=*c,B*s-A c[1]||(return [x,z].min) x<z ?x+d(y,1):[x+d(y,1),z+d(y,s+1)].min end p d(c,1)+w