結果

問題 No.83 最大マッチング
ユーザー temari(hadaly)temari(hadaly)
提出日時 2019-04-05 17:03:16
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 231 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 8,356 KB
最終ジャッジ日時 2023-09-02 13:33:08
合計ジャッジ時間 1,550 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,856 KB
testcase_01 AC 16 ms
8,020 KB
testcase_02 AC 15 ms
7,932 KB
testcase_03 AC 16 ms
8,016 KB
testcase_04 AC 15 ms
7,936 KB
testcase_05 AC 16 ms
7,856 KB
testcase_06 AC 15 ms
7,896 KB
testcase_07 AC 15 ms
7,860 KB
testcase_08 AC 15 ms
7,972 KB
testcase_09 AC 17 ms
7,880 KB
testcase_10 AC 45 ms
8,260 KB
testcase_11 AC 69 ms
8,324 KB
testcase_12 AC 70 ms
8,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

nyuuryoku = input()

match = int(nyuuryoku)
digit = math.floor(match/2)

result = ''

while match > 1:
    result = '1'+result
    match -= 2
    
if match == 1:
    result = result.replace('1', '7', 1)

print(result)
0