結果

問題 No.83 最大マッチング
ユーザー coro65536coro65536
提出日時 2018-01-25 23:04:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 297 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 8,088 KB
最終ジャッジ日時 2023-08-27 05:53:58
合計ジャッジ時間 1,098 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
8,016 KB
testcase_01 AC 16 ms
7,864 KB
testcase_02 AC 17 ms
7,864 KB
testcase_03 AC 17 ms
7,992 KB
testcase_04 AC 16 ms
7,860 KB
testcase_05 AC 17 ms
7,876 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
num = 1
if N % 2 == 0:
    while N > 2:
        num = 10 * num + 1
        N = N / 2
    print(num)
else:
    N = N - 1
    while N > 2:
        num = 10 * num + 1
        N = N / 2
    num_size = int (math.log10(num))
    num = num + 6 * (10**num_size)
    print(num)
0