結果
| 問題 | No.116 門松列(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-01-23 04:44:03 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 133 bytes |
| 記録 | |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 77,188 KB |
| 最終ジャッジ日時 | 2025-12-03 13:31:24 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 7 WA * 14 |
ソースコード
n = int(raw_input())
t = map(int,raw_input().split())
ans = 0
for i in range(n-2):
if len(set(t[i:i+3])) == 3: ans += 1
print ans