結果
問題 |
No.365 ジェンガソート
|
ユーザー |
|
提出日時 | 2024-05-20 10:38:11 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 66 ms / 2,000 ms |
コード長 | 162 bytes |
コンパイル時間 | 280 ms |
コンパイル使用メモリ | 81,908 KB |
実行使用メモリ | 81,200 KB |
最終ジャッジ日時 | 2024-12-20 17:46:45 |
合計ジャッジ時間 | 4,676 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 41 |
ソースコード
N = int(input()) a = list(map(int, input().split())) cnt = 0 x = N for i in range(N - 1, -1, -1): if a[i] == x: cnt += 1 x -= 1 print(N - cnt)