結果
| 問題 |
No.116 門松列(1)
|
| ユーザー |
|
| 提出日時 | 2015-01-23 04:43:09 |
| 言語 | Python2 (2.7.18) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 125 bytes |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-23 00:43:24 |
| 合計ジャッジ時間 | 955 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 21 |
ソースコード
n = int(raw_input())
t = map(int,raw_input())
ans = 0
for i in range(n-2):
if len(set(t[i:i+3])) == 3: ans += 1
print ans