結果

問題 No.1090 ソーシャルディスタンス / Social Distance
ユーザー 👑 hos.lyrichos.lyric
提出日時 2020-07-30 02:03:47
言語 Ruby
(3.3.0)
結果
AC  
実行時間 190 ms / 2,000 ms
コード長 90 bytes
コンパイル時間 408 ms
コンパイル使用メモリ 11,240 KB
実行使用メモリ 23,752 KB
最終ジャッジ日時 2023-09-13 17:18:13
合計ジャッジ時間 7,171 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
15,084 KB
testcase_01 AC 77 ms
15,136 KB
testcase_02 AC 150 ms
19,908 KB
testcase_03 AC 90 ms
15,656 KB
testcase_04 AC 162 ms
21,884 KB
testcase_05 AC 88 ms
15,672 KB
testcase_06 AC 180 ms
23,432 KB
testcase_07 AC 128 ms
19,580 KB
testcase_08 AC 190 ms
23,696 KB
testcase_09 AC 131 ms
19,576 KB
testcase_10 AC 144 ms
19,908 KB
testcase_11 AC 188 ms
23,560 KB
testcase_12 AC 134 ms
19,688 KB
testcase_13 AC 135 ms
19,904 KB
testcase_14 AC 175 ms
23,424 KB
testcase_15 AC 157 ms
21,308 KB
testcase_16 AC 112 ms
17,440 KB
testcase_17 AC 82 ms
15,416 KB
testcase_18 AC 115 ms
17,528 KB
testcase_19 AC 131 ms
19,364 KB
testcase_20 AC 122 ms
18,704 KB
testcase_21 AC 134 ms
19,760 KB
testcase_22 AC 78 ms
15,084 KB
testcase_23 AC 76 ms
15,156 KB
testcase_24 AC 189 ms
23,752 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Main.rb:3: warning: assigned but unused variable - a
Syntax OK

ソースコード

diff #

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}
0