結果

問題 No.791 うし数列
ユーザー Co-3
提出日時 2020-09-20 19:37:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-24 10:55:56
合計ジャッジ時間 1,208 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 14 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

ls = list(input())
b = len(ls)
if ls[0] != "1":
    print(-1)
else:
    c = 0
    for i in range(b-1):
        if ls[i+1] != "3":
            print(-1)
            quit()
    print(b-1)
0