結果

問題 No.83 最大マッチング
ユーザー gya9_gya9_
提出日時 2018-07-19 19:43:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 160 bytes
コンパイル時間 841 ms
コンパイル使用メモリ 10,608 KB
実行使用メモリ 7,960 KB
最終ジャッジ日時 2023-08-25 22:26:42
合計ジャッジ時間 1,438 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

N = int(input())

A = list(bin(N))
B = A[::-1].index("1")

ones = ["1" for i in range(B)]

if N % 2 == 1:
    ones[0] = "7"

ans = int("".join(ones))
print(ans)
0