結果
| 問題 | No.365 ジェンガソート |
| コンテスト | |
| ユーザー |
s_shohei
|
| 提出日時 | 2020-05-04 19:36:39 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 160 bytes |
| 記録 | |
| コンパイル時間 | 339 ms |
| コンパイル使用メモリ | 85,324 KB |
| 実行使用メモリ | 81,540 KB |
| 最終ジャッジ日時 | 2026-03-11 01:35:14 |
| 合計ジャッジ時間 | 2,901 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 41 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
a.reverse()
now=n
cnt=0
for i in range(n):
if a[i] == now:
cnt+=1
now-=1
print(n-cnt)
s_shohei