結果

問題 No.791 うし数列
ユーザー O2MTO2MT
提出日時 2021-02-12 01:22:11
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 195 bytes
コンパイル時間 775 ms
コンパイル使用メモリ 87,232 KB
実行使用メモリ 71,504 KB
最終ジャッジ日時 2023-09-25 15:11:24
合計ジャッジ時間 3,157 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
70,936 KB
testcase_01 AC 69 ms
71,100 KB
testcase_02 WA -
testcase_03 AC 70 ms
71,268 KB
testcase_04 AC 72 ms
71,280 KB
testcase_05 AC 71 ms
71,108 KB
testcase_06 AC 71 ms
71,096 KB
testcase_07 AC 70 ms
70,944 KB
testcase_08 AC 70 ms
71,096 KB
testcase_09 AC 71 ms
71,176 KB
testcase_10 AC 70 ms
71,176 KB
testcase_11 AC 70 ms
71,028 KB
testcase_12 AC 71 ms
70,940 KB
testcase_13 AC 70 ms
70,944 KB
testcase_14 AC 70 ms
70,980 KB
testcase_15 AC 71 ms
71,100 KB
testcase_16 AC 72 ms
71,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = str(input())
ans = 0
if N[0] != '1':
    ans = -1
else:
    N = N[1:]
    for n in N:
        if n == '3':
            ans += 1
        else:
            ans = -1
            break
print(ans)
0