結果
| 問題 |
No.365 ジェンガソート
|
| コンテスト | |
| ユーザー |
shinjiweb
|
| 提出日時 | 2016-06-23 15:53:41 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 201 bytes |
| コンパイル時間 | 39 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 24,100 KB |
| 最終ジャッジ日時 | 2024-10-11 20:07:46 |
| 合計ジャッジ時間 | 6,563 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 TLE * 1 -- * 24 |
コンパイルメッセージ
Syntax OK
ソースコード
n = gets.to_i count = 0 a_list = gets.split.map(&:to_i) n.downto(2) do |i| next unless a_list.index(i) < a_list.index(i - 1) a_list.delete(i - 1) a_list.unshift(i - 1) count += 1 end puts count
shinjiweb