結果
問題 |
No.182 新規性の虜
|
ユーザー |
👑 ![]() |
提出日時 | 2025-10-05 05:22:17 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 72 ms / 5,000 ms |
コード長 | 270 bytes |
コンパイル時間 | 314 ms |
コンパイル使用メモリ | 82,292 KB |
実行使用メモリ | 81,748 KB |
最終ジャッジ日時 | 2025-10-05 05:22:21 |
合計ジャッジ時間 | 3,407 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
ソースコード
""" https://yukicoder.me/problems/no/182 """ import sys N = int(input()) if N == 1: print (1) sys.exit() 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)