結果

問題 No.116 門松列(1)
ユーザー roiti46
提出日時 2015-01-23 04:49:28
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 7,040 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2024-06-23 00:43:27
合計ジャッジ時間 1,128 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other AC * 7 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(raw_input())
t = map(int,raw_input().split())
ans = 0
for i in range(n-2):
    if t[0] != t[2] and t[0] < t[1] and t[1] > t[2] or t[0] > t[1] or t[1] < t[2]: ans += 1
print ans
0