結果

問題 No.1722 [Cherry 3rd Tune C] In my way
ユーザー maimai
提出日時 2021-10-29 22:17:28
言語 Ruby
(3.3.0)
結果
AC  
実行時間 176 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 7,424 KB
実行使用メモリ 18,432 KB
最終ジャッジ日時 2024-04-16 15:07:31
合計ジャッジ時間 4,033 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 97 ms
12,288 KB
testcase_01 AC 98 ms
12,288 KB
testcase_02 AC 138 ms
16,000 KB
testcase_03 AC 133 ms
15,104 KB
testcase_04 AC 117 ms
13,312 KB
testcase_05 AC 99 ms
12,544 KB
testcase_06 AC 90 ms
12,288 KB
testcase_07 AC 95 ms
12,288 KB
testcase_08 AC 160 ms
18,176 KB
testcase_09 AC 94 ms
12,416 KB
testcase_10 AC 89 ms
12,288 KB
testcase_11 AC 173 ms
18,304 KB
testcase_12 AC 172 ms
18,048 KB
testcase_13 AC 175 ms
18,432 KB
testcase_14 AC 174 ms
18,304 KB
testcase_15 AC 174 ms
18,432 KB
testcase_16 AC 172 ms
18,432 KB
testcase_17 AC 172 ms
18,176 KB
testcase_18 AC 176 ms
18,432 KB
testcase_19 AC 173 ms
18,304 KB
testcase_20 AC 173 ms
18,432 KB
testcase_21 AC 90 ms
12,032 KB
testcase_22 AC 90 ms
12,288 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

def lscan; gets.split.map(&:to_i); end
gets
xx = lscan
yy = lscan + [4e9]
puts xx.each.lazy.map{|x| yy.filter{|y| x < y}.min-x }.map{|y| y > 2e9 ? 'Infinity' : y}.to_a
0