結果

問題 No.365 ジェンガソート
ユーザー hogeover30hogeover30
提出日時 2016-09-21 13:18:20
言語 Ruby
(3.3.0)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 64 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 11,504 KB
実行使用メモリ 22,480 KB
最終ジャッジ日時 2023-08-27 06:35:59
合計ジャッジ時間 6,092 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,204 KB
testcase_01 AC 84 ms
15,200 KB
testcase_02 AC 83 ms
15,140 KB
testcase_03 AC 83 ms
15,040 KB
testcase_04 AC 84 ms
15,112 KB
testcase_05 AC 83 ms
15,216 KB
testcase_06 AC 83 ms
15,200 KB
testcase_07 AC 85 ms
15,204 KB
testcase_08 AC 83 ms
15,040 KB
testcase_09 AC 83 ms
15,120 KB
testcase_10 AC 82 ms
15,228 KB
testcase_11 AC 85 ms
15,292 KB
testcase_12 AC 83 ms
15,252 KB
testcase_13 AC 84 ms
15,052 KB
testcase_14 AC 84 ms
15,172 KB
testcase_15 AC 84 ms
15,224 KB
testcase_16 AC 114 ms
20,456 KB
testcase_17 AC 130 ms
21,772 KB
testcase_18 AC 87 ms
15,552 KB
testcase_19 AC 131 ms
21,672 KB
testcase_20 AC 99 ms
17,044 KB
testcase_21 AC 91 ms
16,368 KB
testcase_22 AC 116 ms
20,260 KB
testcase_23 AC 104 ms
18,224 KB
testcase_24 AC 115 ms
20,148 KB
testcase_25 AC 93 ms
16,400 KB
testcase_26 AC 108 ms
18,900 KB
testcase_27 AC 132 ms
22,264 KB
testcase_28 AC 108 ms
19,096 KB
testcase_29 AC 119 ms
21,240 KB
testcase_30 AC 110 ms
19,224 KB
testcase_31 AC 96 ms
16,788 KB
testcase_32 AC 98 ms
16,736 KB
testcase_33 AC 134 ms
22,120 KB
testcase_34 AC 92 ms
15,952 KB
testcase_35 AC 115 ms
20,188 KB
testcase_36 AC 133 ms
22,300 KB
testcase_37 AC 135 ms
22,288 KB
testcase_38 AC 133 ms
22,480 KB
testcase_39 AC 134 ms
22,288 KB
testcase_40 AC 135 ms
22,456 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n,*a=$<.read.split.map &:to_i
n-=1if n==a.pop while a.size>0
p n
0