結果
問題 | No.610 区間賞(Section Award) |
ユーザー |
|
提出日時 | 2017-12-11 22:25:29 |
言語 | Ruby (3.4.1) |
結果 |
AC
|
実行時間 | 276 ms / 2,000 ms |
コード長 | 146 bytes |
コンパイル時間 | 201 ms |
コンパイル使用メモリ | 7,424 KB |
実行使用メモリ | 31,812 KB |
最終ジャッジ日時 | 2024-11-30 21:04:28 |
合計ジャッジ時間 | 8,981 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
コンパイルメッセージ
Syntax OK
ソースコード
N=gets.to_iA,B=$<.map{|s|s.split.map &:to_i}ans = []B.each{|x|idx = A.index(x)if idxA.shift(idx)ans << xend}puts ans.sort