結果

問題 No.791 うし数列
ユーザー McGregorsh
提出日時 2023-04-10 11:57:47
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 224 bytes
コンパイル時間 1,009 ms
コンパイル使用メモリ 81,924 KB
実行使用メモリ 53,992 KB
最終ジャッジ日時 2024-10-05 19:49:53
合計ジャッジ時間 1,916 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 1 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

N = input()
cou = 0
for i in range(len(N)):
    if cou == 0:
        if N[i] == '3':
            cou += 1
    else:
        if N[i] != '3':
            cou += 1
        else:
            cou = 0
            break
print(cou)
0