結果
| 問題 |
No.365 ジェンガソート
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-06 13:02:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| コード長 | 153 bytes |
| コンパイル時間 | 458 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 80,384 KB |
| 最終ジャッジ日時 | 2025-04-06 13:02:06 |
| 合計ジャッジ時間 | 4,817 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 41 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
cnt = 0
n = N
for i in range(N-1,-1,-1):
if A[i]==n:
cnt += 1
n -= 1
print(N-cnt)