結果
| 問題 | No.1438 Broken Drawers |
| コンテスト | |
| ユーザー |
burita083
|
| 提出日時 | 2021-03-26 21:51:22 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 309 bytes |
| 記録 | |
| コンパイル時間 | 555 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 52,152 KB |
| 最終ジャッジ日時 | 2026-05-22 20:55:55 |
| 合計ジャッジ時間 | 7,906 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_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