結果
問題 |
No.365 ジェンガソート
|
ユーザー |
![]() |
提出日時 | 2016-08-20 17:40:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 281 bytes |
コンパイル時間 | 276 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 24,064 KB |
最終ジャッジ日時 | 2024-11-07 21:35:33 |
合計ジャッジ時間 | 4,496 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 WA * 6 TLE * 1 -- * 24 |
ソースコード
def fnc(d,n=0): if "".join(map(str,d)) == "".join(map(str,sorted(d))): print(n) else: x = d[0]-1 if d[0] == min(d): x = max(d)-1 d.remove(x) d.insert(0,x) fnc(d, n+1) input() fnc(list(map(int,input().split(" "))))