結果
問題 |
No.182 新規性の虜
|
ユーザー |
👑 ![]() |
提出日時 | 2025-10-05 05:21:40 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 436 ms |
コンパイル使用メモリ | 82,768 KB |
実行使用メモリ | 82,968 KB |
最終ジャッジ日時 | 2025-10-05 05:21:48 |
合計ジャッジ時間 | 3,931 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 25 WA * 2 |
ソースコード
""" https://yukicoder.me/problems/no/182 """ N = int(input()) A = list(map(int,input().split())) A.sort() ans = 0 for i in range(N): if A[i-1] != A[i] and A[(i+1)%N] != A[i]: ans += 1 print (ans)