結果
| 問題 |
No.182 新規性の虜
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-02-07 16:41:02 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 254 bytes |
| コンパイル時間 | 723 ms |
| コンパイル使用メモリ | 7,196 KB |
| 実行使用メモリ | 12,416 KB |
| 最終ジャッジ日時 | 2024-09-21 21:33:24 |
| 合計ジャッジ時間 | 2,742 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 11 WA * 14 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(0,len(s)-1): if s[i]<s[i+1]: cnt+=1 print cnt