結果
| 問題 |
No.2779 Don't make Pair
|
| コンテスト | |
| ユーザー |
あじゃじゃ
|
| 提出日時 | 2024-06-07 22:54:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| コンパイル時間 | 421 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 314,348 KB |
| 最終ジャッジ日時 | 2024-12-26 09:29:02 |
| 合計ジャッジ時間 | 61,909 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 WA * 1 |
| other | AC * 4 WA * 1 TLE * 19 |
ソースコード
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)
あじゃじゃ