結果
| 問題 | No.116 門松列(1) |
| コンテスト | |
| ユーザー |
togatoga
|
| 提出日時 | 2015-08-19 10:01:57 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 230 bytes |
| 記録 | |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 81,024 KB |
| 実行使用メモリ | 81,152 KB |
| 最終ジャッジ日時 | 2026-07-17 19:16:24 |
| 合計ジャッジ時間 | 2,970 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 9 WA * 12 |
ソースコード
N = input()
A = map(int, raw_input().split())
res = 0
for i in range(N - 2):
a = A[i]
b = A[i + 1]
c = A[i + 2]
if (a == b or b == c or a == c):
continue
if (b < a or b > c):
res += 1
print res
togatoga