結果

問題 No.632 穴埋め門松列
ユーザー KisaragiEffectiveKisaragiEffective
提出日時 2020-11-08 16:51:04
言語 Ruby
(3.3.0)
結果
AC  
実行時間 73 ms / 1,000 ms
コード長 166 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 15,304 KB
最終ジャッジ日時 2023-09-29 21:17:01
合計ジャッジ時間 1,924 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
15,304 KB
testcase_01 AC 67 ms
15,104 KB
testcase_02 AC 73 ms
15,152 KB
testcase_03 AC 70 ms
15,072 KB
testcase_04 AC 66 ms
15,040 KB
testcase_05 AC 71 ms
15,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

w=gets.split
s=w.index(??)
puts %w(1 4).map {|x| w[0...s] + [x] + w[(s+1)..-1] }.to_a.map{|x| x.map(&:to_i) }.filter {|x| x.minmax.include?(x[1])}.map{|x| x[s] } * ""
0