結果

問題 No.930 数列圧縮
ユーザー yuruhiyayuruhiya
提出日時 2020-10-25 19:43:41
言語 Ruby
(3.2.2)
結果
AC  
実行時間 268 ms / 2,000 ms
コード長 104 bytes
コンパイル時間 299 ms
コンパイル使用メモリ 11,284 KB
実行使用メモリ 33,848 KB
最終ジャッジ日時 2023-09-29 02:11:40
合計ジャッジ時間 6,887 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
外部呼び出し有り
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 88 ms
15,280 KB
testcase_01 AC 87 ms
15,140 KB
testcase_02 AC 88 ms
15,156 KB
testcase_03 AC 87 ms
15,296 KB
testcase_04 AC 90 ms
15,220 KB
testcase_05 AC 91 ms
15,496 KB
testcase_06 AC 88 ms
15,216 KB
testcase_07 AC 95 ms
15,720 KB
testcase_08 AC 214 ms
27,412 KB
testcase_09 AC 237 ms
29,716 KB
testcase_10 AC 202 ms
26,524 KB
testcase_11 AC 220 ms
27,656 KB
testcase_12 AC 240 ms
30,056 KB
testcase_13 AC 127 ms
24,488 KB
testcase_14 AC 135 ms
26,656 KB
testcase_15 AC 265 ms
33,772 KB
testcase_16 AC 267 ms
33,672 KB
testcase_17 AC 265 ms
33,788 KB
testcase_18 AC 263 ms
33,704 KB
testcase_19 AC 268 ms
33,848 KB
testcase_20 AC 264 ms
33,772 KB
testcase_21 AC 267 ms
33,584 KB
testcase_22 AC 89 ms
15,092 KB
testcase_23 AC 266 ms
33,684 KB
testcase_24 AC 87 ms
15,092 KB
testcase_25 AC 87 ms
15,080 KB
testcase_26 AC 87 ms
14,988 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:4: warning: `*' interpreted as argument prefix
Syntax OK

ソースコード

diff #

eval"N,A,*B,C="+`dd`.split*?,
A>C&&puts(:No)+exit
puts :Yes
p *B.select{A<_1}+B.reverse.select{A>_1}+[A]
0