結果
| 問題 | No.3655 Adjacent Pairs in Triplets |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2026-08-30 13:32:20 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
AC
|
| 実行時間 | 81 ms / 2,000 ms |
| + 246µs | |
| コード長 | 118 bytes |
| 記録 | |
| コンパイル時間 | 900 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 83,968 KB |
| 最終ジャッジ日時 | 2026-08-30 13:33:08 |
| 合計ジャッジ時間 | 3,312 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
s = input()
ans = sum(s[i] == s[i+1] != s[i+2] or s[i] != s[i+1] == s[i+2] for i in range(len(s) - 2))
print(ans)
Kude