結果

問題 No.610 区間賞(Section Award)
ユーザー cielciel
提出日時 2017-12-10 00:16:36
言語 Ruby
(3.2.2)
結果
AC  
実行時間 292 ms / 2,000 ms
コード長 169 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 11,376 KB
実行使用メモリ 45,180 KB
最終ジャッジ日時 2023-08-20 05:34:00
合計ジャッジ時間 8,709 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,124 KB
testcase_01 AC 87 ms
15,080 KB
testcase_02 AC 83 ms
15,296 KB
testcase_03 AC 80 ms
15,148 KB
testcase_04 AC 80 ms
15,272 KB
testcase_05 AC 79 ms
15,284 KB
testcase_06 AC 86 ms
15,360 KB
testcase_07 AC 85 ms
15,320 KB
testcase_08 AC 87 ms
15,264 KB
testcase_09 AC 80 ms
15,268 KB
testcase_10 AC 81 ms
15,148 KB
testcase_11 AC 80 ms
15,032 KB
testcase_12 AC 79 ms
15,172 KB
testcase_13 AC 81 ms
15,084 KB
testcase_14 AC 82 ms
15,164 KB
testcase_15 AC 83 ms
15,264 KB
testcase_16 AC 80 ms
15,252 KB
testcase_17 AC 83 ms
15,300 KB
testcase_18 AC 79 ms
15,240 KB
testcase_19 AC 96 ms
17,504 KB
testcase_20 AC 180 ms
31,424 KB
testcase_21 AC 92 ms
16,912 KB
testcase_22 AC 141 ms
24,996 KB
testcase_23 AC 86 ms
16,184 KB
testcase_24 AC 101 ms
17,588 KB
testcase_25 AC 85 ms
15,616 KB
testcase_26 AC 124 ms
22,696 KB
testcase_27 AC 178 ms
31,572 KB
testcase_28 AC 162 ms
25,644 KB
testcase_29 AC 138 ms
24,828 KB
testcase_30 AC 157 ms
25,020 KB
testcase_31 AC 121 ms
22,136 KB
testcase_32 AC 164 ms
25,584 KB
testcase_33 AC 91 ms
16,960 KB
testcase_34 AC 181 ms
31,376 KB
testcase_35 AC 126 ms
22,780 KB
testcase_36 AC 178 ms
31,088 KB
testcase_37 AC 162 ms
24,788 KB
testcase_38 AC 98 ms
17,464 KB
testcase_39 AC 182 ms
31,756 KB
testcase_40 AC 185 ms
31,808 KB
testcase_41 AC 188 ms
31,828 KB
testcase_42 AC 187 ms
31,924 KB
testcase_43 AC 185 ms
31,916 KB
testcase_44 AC 248 ms
29,052 KB
testcase_45 AC 292 ms
45,156 KB
testcase_46 AC 292 ms
45,180 KB
testcase_47 AC 160 ms
25,180 KB
testcase_48 AC 156 ms
24,788 KB
testcase_49 AC 161 ms
25,440 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:16: 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]
	while a[0]
		v=a.shift
		Z[v]=1
		break if v==n
	end
	break if v!=n
	r<<n
}
p *r.sort
0