結果
問題 | No.365 ジェンガソート |
ユーザー |
|
提出日時 | 2018-06-16 20:26:52 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 121 ms / 2,000 ms |
コード長 | 374 bytes |
コンパイル時間 | 149 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 20,724 KB |
最終ジャッジ日時 | 2024-06-30 16:26:26 |
合計ジャッジ時間 | 3,950 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 41 |
ソースコード
N = int(input()) genga = list(map(int, input().split())) #print(genga) b = 0 c = 0 #その数の前にそれより大きな数があるもののうちの最大c for a in genga: if a < b: c = max(c, a) else: b = a count = 0 #Cより小さいものは結局1回動かす必要がある for a in genga: if a <= c: count += 1 print(count)