結果

問題 No.610 区間賞(Section Award)
ユーザー cielciel
提出日時 2017-12-10 00:28:29
言語 Ruby
(3.3.0)
結果
AC  
実行時間 305 ms / 2,000 ms
コード長 155 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 11,472 KB
実行使用メモリ 45,284 KB
最終ジャッジ日時 2023-08-20 05:40:58
合計ジャッジ時間 9,149 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 85 ms
14,996 KB
testcase_01 AC 81 ms
15,248 KB
testcase_02 AC 81 ms
15,196 KB
testcase_03 AC 80 ms
15,136 KB
testcase_04 AC 80 ms
14,988 KB
testcase_05 AC 78 ms
15,332 KB
testcase_06 AC 80 ms
15,324 KB
testcase_07 AC 81 ms
15,148 KB
testcase_08 AC 82 ms
15,148 KB
testcase_09 AC 81 ms
15,108 KB
testcase_10 AC 83 ms
15,288 KB
testcase_11 AC 85 ms
14,988 KB
testcase_12 AC 83 ms
15,268 KB
testcase_13 AC 85 ms
15,096 KB
testcase_14 AC 84 ms
15,252 KB
testcase_15 AC 86 ms
15,288 KB
testcase_16 AC 86 ms
15,224 KB
testcase_17 AC 87 ms
15,032 KB
testcase_18 AC 86 ms
15,088 KB
testcase_19 AC 102 ms
17,516 KB
testcase_20 AC 197 ms
31,524 KB
testcase_21 AC 92 ms
16,924 KB
testcase_22 AC 142 ms
24,836 KB
testcase_23 AC 87 ms
15,924 KB
testcase_24 AC 101 ms
17,456 KB
testcase_25 AC 84 ms
15,824 KB
testcase_26 AC 126 ms
22,676 KB
testcase_27 AC 181 ms
31,364 KB
testcase_28 AC 166 ms
25,684 KB
testcase_29 AC 140 ms
24,628 KB
testcase_30 AC 162 ms
24,904 KB
testcase_31 AC 121 ms
22,128 KB
testcase_32 AC 175 ms
25,724 KB
testcase_33 AC 96 ms
16,964 KB
testcase_34 AC 183 ms
31,552 KB
testcase_35 AC 126 ms
22,700 KB
testcase_36 AC 185 ms
30,904 KB
testcase_37 AC 159 ms
24,772 KB
testcase_38 AC 100 ms
17,512 KB
testcase_39 AC 188 ms
31,752 KB
testcase_40 AC 186 ms
31,772 KB
testcase_41 AC 186 ms
31,756 KB
testcase_42 AC 187 ms
31,816 KB
testcase_43 AC 188 ms
31,760 KB
testcase_44 AC 265 ms
29,240 KB
testcase_45 AC 305 ms
45,108 KB
testcase_46 AC 303 ms
45,284 KB
testcase_47 AC 164 ms
25,348 KB
testcase_48 AC 158 ms
25,008 KB
testcase_49 AC 162 ms
24,860 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:13: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

gets
a=gets.split.map &:to_i
Z={}
r=[]
gets.split.each{|e|
	n=e.to_i
	next if Z[n]
	v=nil
	Z[v=a.shift]=1 while a[0]&&v!=n
	break if v!=n
	r<<n
}
p *r.sort
0