結果

問題 No.791 うし数列
ユーザー kageyasai2kageyasai2
提出日時 2019-02-26 01:02:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,668 KB
実行使用メモリ 7,956 KB
最終ジャッジ日時 2023-08-28 23:20:13
合計ジャッジ時間 1,386 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,840 KB
testcase_01 AC 13 ms
7,860 KB
testcase_02 AC 14 ms
7,956 KB
testcase_03 AC 13 ms
7,812 KB
testcase_04 AC 13 ms
7,876 KB
testcase_05 AC 14 ms
7,792 KB
testcase_06 AC 13 ms
7,776 KB
testcase_07 AC 14 ms
7,800 KB
testcase_08 AC 13 ms
7,860 KB
testcase_09 AC 14 ms
7,876 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 14 ms
7,940 KB
testcase_13 AC 14 ms
7,828 KB
testcase_14 AC 13 ms
7,804 KB
testcase_15 AC 14 ms
7,880 KB
testcase_16 AC 14 ms
7,800 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    number = input()
    if number == "1" or number[0] != "1" or int(number) % 2 != 1:
        print(-1)
    else:
        print(len(str(number)) - 1)

if __name__ == "__main__":
    main()
0