結果

問題 No.791 うし数列
ユーザー kageyasai2kageyasai2
提出日時 2019-02-26 00:53:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 262 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 10,740 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-08-28 22:56:19
合計ジャッジ時間 1,681 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

def usi_suretu(number):
    #桁数取得
    return len(str(number)) - 1

def main():
    number = int(input())
    if number == 1 or number % 2 == 0:
        print(-1)
    else:
        print(usi_suretu(number))
if __name__ == "__main__":
    main()
0