結果

問題 No.791 うし数列
ユーザー otsunekootsuneko
提出日時 2021-05-07 19:19:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 116 bytes
コンパイル時間 296 ms
コンパイル使用メモリ 87,120 KB
実行使用メモリ 71,560 KB
最終ジャッジ日時 2023-10-13 10:24:14
合計ジャッジ時間 2,701 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,268 KB
testcase_01 AC 68 ms
71,524 KB
testcase_02 WA -
testcase_03 AC 69 ms
71,332 KB
testcase_04 AC 69 ms
71,408 KB
testcase_05 AC 69 ms
71,200 KB
testcase_06 AC 68 ms
71,272 KB
testcase_07 AC 68 ms
71,476 KB
testcase_08 AC 68 ms
71,560 KB
testcase_09 AC 67 ms
71,164 KB
testcase_10 AC 73 ms
71,168 KB
testcase_11 AC 71 ms
71,288 KB
testcase_12 AC 71 ms
71,408 KB
testcase_13 AC 73 ms
71,200 KB
testcase_14 AC 69 ms
71,304 KB
testcase_15 AC 68 ms
71,312 KB
testcase_16 AC 73 ms
71,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = list(input())

if N[0] == "1" and N[1:].count("3") == len(N[1:]):
    print(len(N[1:]))
else:
    print(-1)
0