結果

問題 No.365 ジェンガソート
ユーザー cielciel
提出日時 2016-05-01 23:54:52
言語 Ruby
(3.3.0)
結果
AC  
実行時間 139 ms / 2,000 ms
コード長 70 bytes
コンパイル時間 43 ms
コンパイル使用メモリ 11,332 KB
実行使用メモリ 22,588 KB
最終ジャッジ日時 2023-08-27 06:16:52
合計ジャッジ時間 6,127 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,252 KB
testcase_01 AC 82 ms
15,020 KB
testcase_02 AC 82 ms
15,148 KB
testcase_03 AC 82 ms
15,308 KB
testcase_04 AC 83 ms
15,236 KB
testcase_05 AC 81 ms
15,332 KB
testcase_06 AC 81 ms
15,092 KB
testcase_07 AC 82 ms
15,124 KB
testcase_08 AC 82 ms
15,220 KB
testcase_09 AC 82 ms
15,096 KB
testcase_10 AC 81 ms
15,120 KB
testcase_11 AC 81 ms
15,048 KB
testcase_12 AC 81 ms
15,080 KB
testcase_13 AC 82 ms
15,284 KB
testcase_14 AC 83 ms
15,196 KB
testcase_15 AC 83 ms
15,148 KB
testcase_16 AC 116 ms
20,320 KB
testcase_17 AC 130 ms
21,724 KB
testcase_18 AC 85 ms
15,376 KB
testcase_19 AC 128 ms
21,688 KB
testcase_20 AC 96 ms
17,112 KB
testcase_21 AC 91 ms
16,384 KB
testcase_22 AC 113 ms
20,352 KB
testcase_23 AC 102 ms
18,344 KB
testcase_24 AC 112 ms
20,056 KB
testcase_25 AC 91 ms
16,524 KB
testcase_26 AC 108 ms
18,936 KB
testcase_27 AC 131 ms
22,296 KB
testcase_28 AC 109 ms
19,208 KB
testcase_29 AC 118 ms
21,384 KB
testcase_30 AC 109 ms
19,400 KB
testcase_31 AC 98 ms
16,704 KB
testcase_32 AC 97 ms
16,648 KB
testcase_33 AC 131 ms
22,116 KB
testcase_34 AC 90 ms
16,024 KB
testcase_35 AC 113 ms
20,072 KB
testcase_36 AC 130 ms
22,388 KB
testcase_37 AC 133 ms
22,376 KB
testcase_38 AC 135 ms
22,488 KB
testcase_39 AC 134 ms
22,588 KB
testcase_40 AC 139 ms
22,372 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,*a=$<.read.split.map(&:to_i)
(n-1).downto(0){|i|n-=1 if a[i]==n}
p n
0