結果

問題 No.397 NO MORE KADOMATSU
ユーザー koba-e964koba-e964
提出日時 2016-08-09 03:03:11
言語 Ruby
(3.3.0)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 130 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 11,320 KB
実行使用メモリ 31,756 KB
平均クエリ数 936.56
最終ジャッジ日時 2023-09-24 00:25:42
合計ジャッジ時間 3,032 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 95 ms
30,740 KB
testcase_01 AC 86 ms
30,748 KB
testcase_02 AC 86 ms
31,052 KB
testcase_03 AC 89 ms
31,012 KB
testcase_04 AC 90 ms
31,352 KB
testcase_05 AC 88 ms
31,052 KB
testcase_06 AC 90 ms
31,200 KB
testcase_07 AC 92 ms
31,472 KB
testcase_08 AC 92 ms
30,812 KB
testcase_09 AC 92 ms
30,936 KB
testcase_10 AC 111 ms
31,588 KB
testcase_11 AC 90 ms
31,108 KB
testcase_12 AC 96 ms
31,396 KB
testcase_13 AC 100 ms
31,756 KB
testcase_14 AC 100 ms
31,460 KB
testcase_15 AC 101 ms
31,688 KB
testcase_16 AC 88 ms
30,652 KB
testcase_17 AC 88 ms
30,992 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

gets
b=u=[]
gets.split.map{|q|v=q.to_i;s=b.size;i=b.index{|k|k>v}||s;u+=(-s...-i).map{|t|[~t,-t]*' '};b[i...i]=v;};p u.size;puts u
0