結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-26 09:24:55 |
| 言語 | Python2 (2.7.18) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 270 bytes |
| コンパイル時間 | 107 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-09-22 13:55:34 |
| 合計ジャッジ時間 | 2,096 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 RE * 2 |
ソースコード
#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