結果
| 問題 | No.3655 Adjacent Pairs in Triplets |
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2026-08-30 13:32:26 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 121 bytes |
| 記録 | |
| コンパイル時間 | 235 ms |
| コンパイル使用メモリ | 96,236 KB |
| 実行使用メモリ | 84,352 KB |
| 最終ジャッジ日時 | 2026-08-30 13:33:14 |
| 合計ジャッジ時間 | 3,127 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | WA * 18 |
ソースコード
S = input()
n = len(S)
ans = 0
for i in range(n - 2):
if len(set(S[i : i + 3])) == 2:
ans += 1
print(ans)