結果

問題 No.1292 パタパタ三角形
ユーザー gew1fw
提出日時 2025-06-12 21:38:18
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 82,216 KB
実行使用メモリ 73,648 KB
最終ジャッジ日時 2025-06-12 21:42:45
合計ジャッジ時間 1,791 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input().strip()
count = 0
prev = None
for c in S:
    if prev is None:
        count += 1
    else:
        if c != prev:
            count += 1
    prev = c
print(count + 1)
0