結果

問題 No.182 新規性の虜
ユーザー pluto77pluto77
提出日時 2016-02-26 09:24:55
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 270 bytes
コンパイル時間 1,388 ms
コンパイル使用メモリ 7,124 KB
実行使用メモリ 12,460 KB
最終ジャッジ日時 2023-10-23 20:15:26
合計ジャッジ時間 3,093 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,432 KB
testcase_01 AC 11 ms
6,432 KB
testcase_02 AC 11 ms
6,432 KB
testcase_03 AC 11 ms
6,432 KB
testcase_04 AC 10 ms
6,432 KB
testcase_05 AC 10 ms
6,432 KB
testcase_06 AC 10 ms
6,432 KB
testcase_07 AC 10 ms
6,432 KB
testcase_08 AC 58 ms
9,712 KB
testcase_09 AC 93 ms
11,896 KB
testcase_10 AC 81 ms
11,056 KB
testcase_11 AC 67 ms
10,388 KB
testcase_12 AC 33 ms
7,976 KB
testcase_13 AC 11 ms
6,432 KB
testcase_14 AC 10 ms
6,432 KB
testcase_15 RE -
testcase_16 AC 11 ms
6,432 KB
testcase_17 AC 10 ms
6,432 KB
testcase_18 AC 67 ms
10,804 KB
testcase_19 AC 50 ms
9,472 KB
testcase_20 AC 34 ms
8,360 KB
testcase_21 AC 74 ms
11,484 KB
testcase_22 AC 40 ms
8,852 KB
testcase_23 RE -
testcase_24 AC 59 ms
12,460 KB
testcase_25 AC 30 ms
7,332 KB
testcase_26 AC 20 ms
7,028 KB
testcase_27 AC 11 ms
6,432 KB
evil01.txt AC 60 ms
12,928 KB
evil02.txt AC 60 ms
12,928 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(len(s)-2):
 if s[i]<s[i+1] and s[i+2]>s[i+1]:
  cnt+=1

print cnt
0