結果
| 問題 | No.1438 Broken Drawers |
| コンテスト | |
| ユーザー |
burita083
|
| 提出日時 | 2021-03-26 21:51:22 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 15,104 KB |
| 実行使用メモリ | 49,732 KB |
| 最終ジャッジ日時 | 2026-10-01 15:12:07 |
| 合計ジャッジ時間 | 6,364 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 3 WA * 22 |
ソースコード
N = int(input())
A = list(map(int, input().split()))
ban = set()
right = set()
for n in range(N):
right.add(n+1)
ans = []
for n in range(N):
current = A[n]
right.remove(current)
if not current in ban:
ans.append(current)
if current-1 >= 1:
ban.add(current-1)
lb = len(ban)
print(lb)
burita083