結果

問題 No.182 新規性の虜
ユーザー pluto77pluto77
提出日時 2016-02-07 16:41:02
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 254 bytes
コンパイル時間 574 ms
コンパイル使用メモリ 7,160 KB
実行使用メモリ 12,440 KB
最終ジャッジ日時 2023-10-21 20:07:58
合計ジャッジ時間 2,372 ms
ジャッジサーバーID
(参考情報)
judge11 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
6,412 KB
testcase_01 WA -
testcase_02 AC 11 ms
6,412 KB
testcase_03 AC 11 ms
6,412 KB
testcase_04 AC 11 ms
6,412 KB
testcase_05 AC 11 ms
6,412 KB
testcase_06 AC 11 ms
6,412 KB
testcase_07 AC 12 ms
6,412 KB
testcase_08 AC 52 ms
9,692 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 RE -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 RE -
testcase_24 AC 46 ms
12,440 KB
testcase_25 WA -
testcase_26 AC 18 ms
7,008 KB
testcase_27 AC 11 ms
6,412 KB
evil01.txt AC 45 ms
12,908 KB
evil02.txt AC 45 ms
12,908 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding: utf-8
##yuki_182

import sys

n=int(raw_input())
s=[]
s=raw_input().split()
if len(s)!=n:
 print "error"
 sys.exit()

s.sort()
cnt=0
if s[0]<s[1]:
 cnt=1
if s[-1]==s[-2]:
 cnt-=1
for i in xrange(0,len(s)-1):
 if s[i]<s[i+1]:
  cnt+=1

print cnt
0