結果

問題 No.791 うし数列
ユーザー pasoconhoshiipasoconhoshii
提出日時 2019-02-23 10:08:46
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 189 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 7,984 KB
最終ジャッジ日時 2023-08-19 06:13:01
合計ジャッジ時間 1,340 ms
ジャッジサーバーID
(参考情報)
judge15 / judge9
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,824 KB
testcase_01 AC 16 ms
7,824 KB
testcase_02 WA -
testcase_03 AC 16 ms
7,844 KB
testcase_04 AC 16 ms
7,868 KB
testcase_05 AC 16 ms
7,812 KB
testcase_06 AC 15 ms
7,784 KB
testcase_07 AC 15 ms
7,812 KB
testcase_08 AC 15 ms
7,768 KB
testcase_09 AC 15 ms
7,828 KB
testcase_10 AC 15 ms
7,808 KB
testcase_11 AC 16 ms
7,760 KB
testcase_12 AC 16 ms
7,780 KB
testcase_13 AC 15 ms
7,808 KB
testcase_14 AC 15 ms
7,864 KB
testcase_15 AC 15 ms
7,984 KB
testcase_16 AC 16 ms
7,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# N,M = map(int, input().split())
# N = int(input())
N = input()

if N == "1":
    print(0)
elif N[0] == "1" and all(x == "3" for x in N[1:]):
    print( N.count("3") )
else:
    print(-1)
0