結果
| 問題 | No.2779 Don't make Pair |
| コンテスト | |
| ユーザー |
あじゃじゃ
|
| 提出日時 | 2024-06-07 22:54:56 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 81,468 KB |
| 実行使用メモリ | 302,704 KB |
| 最終ジャッジ日時 | 2026-10-08 06:16:29 |
| 合計ジャッジ時間 | 7,900 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 WA * 1 |
| other | AC * 4 WA * 1 TLE * 1 -- * 18 |
ソースコード
from collections import defaultdict
dp=defaultdict(int)
f=defaultdict(int)
N=int(input())
A=list(map(int,input().split()))
ans=[]
for a in range(N):
if len(list(set(A[:a])))+len(list(set(A[a:])))==N:
ans.append(a)
print(len(ans))
print(*ans)
あじゃじゃ