結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-03-16 22:25:53 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 20,520 KB |
| 最終ジャッジ日時 | 2024-07-04 02:48:20 |
| 合計ジャッジ時間 | 2,736 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 26 WA * 1 |
ソースコード
n=int(input())
ls=list(map(int,input().split()))
ls.sort()
cnt=0
if n==1:
cnt+=1
for i in range(n-2):
if i==0:
if ls[i]!=ls[i+1]:
cnt+=1
if i==n-3:
if ls[i+1]!=ls[i+2]:
cnt+=1
if ls[i]!=ls[i+1]!=ls[i+2]:
cnt+=1
print(cnt)