結果

問題 No.610 区間賞(Section Award)
ユーザー letrangerjpletrangerjp
提出日時 2017-12-11 22:25:29
言語 Ruby
(3.2.2)
結果
AC  
実行時間 261 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 577 ms
コンパイル使用メモリ 11,308 KB
実行使用メモリ 31,852 KB
最終ジャッジ日時 2023-08-20 17:34:53
合計ジャッジ時間 9,358 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,244 KB
testcase_01 AC 82 ms
15,300 KB
testcase_02 AC 81 ms
15,108 KB
testcase_03 AC 82 ms
15,076 KB
testcase_04 AC 82 ms
15,128 KB
testcase_05 AC 83 ms
15,076 KB
testcase_06 AC 83 ms
15,236 KB
testcase_07 AC 81 ms
15,084 KB
testcase_08 AC 84 ms
15,168 KB
testcase_09 AC 81 ms
15,308 KB
testcase_10 AC 82 ms
15,060 KB
testcase_11 AC 83 ms
15,296 KB
testcase_12 AC 81 ms
15,308 KB
testcase_13 AC 84 ms
15,316 KB
testcase_14 AC 85 ms
15,164 KB
testcase_15 AC 83 ms
15,108 KB
testcase_16 AC 84 ms
15,344 KB
testcase_17 AC 84 ms
15,144 KB
testcase_18 AC 82 ms
15,152 KB
testcase_19 AC 101 ms
16,440 KB
testcase_20 AC 168 ms
27,852 KB
testcase_21 AC 97 ms
16,632 KB
testcase_22 AC 134 ms
23,256 KB
testcase_23 AC 89 ms
16,036 KB
testcase_24 AC 104 ms
18,096 KB
testcase_25 AC 88 ms
15,716 KB
testcase_26 AC 118 ms
20,736 KB
testcase_27 AC 174 ms
27,504 KB
testcase_28 AC 152 ms
21,328 KB
testcase_29 AC 134 ms
22,792 KB
testcase_30 AC 148 ms
21,012 KB
testcase_31 AC 117 ms
20,208 KB
testcase_32 AC 161 ms
26,016 KB
testcase_33 AC 94 ms
16,280 KB
testcase_34 AC 169 ms
27,568 KB
testcase_35 AC 123 ms
20,616 KB
testcase_36 AC 161 ms
27,460 KB
testcase_37 AC 146 ms
21,196 KB
testcase_38 AC 99 ms
16,608 KB
testcase_39 AC 169 ms
28,108 KB
testcase_40 AC 172 ms
27,984 KB
testcase_41 AC 167 ms
28,184 KB
testcase_42 AC 167 ms
27,984 KB
testcase_43 AC 168 ms
28,104 KB
testcase_44 AC 228 ms
23,128 KB
testcase_45 AC 259 ms
31,424 KB
testcase_46 AC 261 ms
31,852 KB
testcase_47 AC 148 ms
21,184 KB
testcase_48 AC 145 ms
21,104 KB
testcase_49 AC 149 ms
21,112 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N=gets.to_i
A,B=$<.map{|s|s.split.map &:to_i}
ans = []
B.each{|x|
  idx = A.index(x)
  if idx
    A.shift(idx)
    ans << x
  end
}
puts ans.sort
0