結果
| 問題 |
No.116 門松列(1)
|
| ユーザー |
|
| 提出日時 | 2015-01-23 04:44:03 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 133 bytes |
| コンパイル時間 | 72 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2024-06-23 00:43:25 |
| 合計ジャッジ時間 | 1,154 ms |
|
ジャッジサーバー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