結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
31,296 KB
testcase_01 AC 106 ms
30,880 KB
testcase_02 AC 107 ms
31,444 KB
testcase_03 AC 114 ms
31,320 KB
testcase_04 AC 108 ms
30,868 KB
testcase_05 AC 109 ms
31,296 KB
testcase_06 AC 113 ms
31,584 KB
testcase_07 AC 114 ms
31,588 KB
testcase_08 AC 107 ms
30,732 KB
testcase_09 AC 108 ms
31,448 KB
testcase_10 AC 134 ms
32,188 KB
testcase_11 AC 106 ms
31,212 KB
testcase_12 AC 118 ms
31,604 KB
testcase_13 AC 124 ms
31,912 KB
testcase_14 AC 123 ms
32,132 KB
testcase_15 AC 124 ms
31,856 KB
testcase_16 AC 107 ms
31,524 KB
testcase_17 AC 107 ms
31,352 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];b[i...i]=v;}
p u.size
u.map{|i|puts [~i,-i]*' '}
0