結果
| 問題 | No.3655 Adjacent Pairs in Triplets |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-30 13:48:37 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 80 ms / 2,000 ms |
| + 768µs | |
| コード長 | 150 bytes |
| 記録 | |
| コンパイル時間 | 236 ms |
| コンパイル使用メモリ | 95,784 KB |
| 実行使用メモリ | 83,840 KB |
| 最終ジャッジ日時 | 2026-08-30 13:48:47 |
| 合計ジャッジ時間 | 3,827 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
s = input()
ans = 0
for i in range(len(s) - 2):
t = s[i : i + 3]
if t[0] == t[1] != t[2] or t[0] != t[1] == t[2]:
ans += 1
print(ans)