結果
問題 |
No.1090 ソーシャルディスタンス / Social Distance
|
ユーザー |
👑 |
提出日時 | 2020-07-30 02:03:47 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 219 ms / 2,000 ms |
コード長 | 90 bytes |
コンパイル時間 | 42 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 21,504 KB |
最終ジャッジ日時 | 2024-07-01 02:00:34 |
合計ジャッジ時間 | 5,936 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Main.rb:3: warning: assigned but unused variable - a Syntax OK
ソースコード
n,d=gets.split.map &:to_i print y=z=0 a=gets.split.map{|b|print ' ',z=[z+d,y+=b.to_i].max}