結果

問題 No.397 NO MORE KADOMATSU
ユーザー koba-e964koba-e964
提出日時 2016-08-09 02:38:49
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 131 bytes
コンパイル時間 491 ms
コンパイル使用メモリ 11,160 KB
実行使用メモリ 31,468 KB
平均クエリ数 38.72
最終ジャッジ日時 2023-09-23 11:17:45
合計ジャッジ時間 5,392 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 110 ms
31,304 KB
testcase_01 WA -
testcase_02 AC 109 ms
31,096 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 106 ms
31,444 KB
testcase_10 WA -
testcase_11 AC 105 ms
30,904 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 106 ms
31,340 KB
testcase_17 AC 107 ms
31,288 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..-1]=v;}
p u.size
u.map{|i|puts [~i,-i]*' '}
0