結果

問題 No.1292 パタパタ三角形
ユーザー gew1fw
提出日時 2025-06-12 16:54:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 181 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 73,608 KB
最終ジャッジ日時 2025-06-12 16:54:52
合計ジャッジ時間 1,742 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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