結果
問題 |
No.844 split game
|
ユーザー |
![]() |
提出日時 | 2019-07-25 09:32:07 |
言語 | Ruby (3.4.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 167 bytes |
コンパイル時間 | 578 ms |
コンパイル使用メモリ | 7,972 KB |
実行使用メモリ | 49,024 KB |
最終ジャッジ日時 | 2025-04-20 18:07:41 |
合計ジャッジ時間 | 51,590 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 44 TLE * 12 |
コンパイルメッセージ
Syntax OK
ソースコード
eval'N,_,A='+gets.split*?, a=(0..N).map{[]} $<.map{|s|eval'l=%d;a[%d]<<[l-1,%d]'%s.split} *d=m=A 1.upto(N){|i|m=[m,d[i]=[m-A,*a[i].map{|l,p|d[l]-A+p}].max].max} p d[N]