結果

問題 No.83 最大マッチング
ユーザー yoshi_kyoshi_k
提出日時 2017-09-17 17:26:49
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 5,000 ms
コード長 516 bytes
コンパイル時間 274 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-04-25 14:58:03
合計ジャッジ時間 1,206 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,752 KB
testcase_01 AC 29 ms
10,880 KB
testcase_02 AC 29 ms
10,752 KB
testcase_03 AC 29 ms
10,752 KB
testcase_04 AC 30 ms
10,752 KB
testcase_05 AC 30 ms
10,752 KB
testcase_06 AC 30 ms
10,752 KB
testcase_07 AC 30 ms
10,880 KB
testcase_08 AC 30 ms
10,752 KB
testcase_09 AC 30 ms
10,752 KB
testcase_10 AC 30 ms
11,008 KB
testcase_11 AC 29 ms
10,880 KB
testcase_12 AC 30 ms
10,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

try:
    import mydebug

    def dprint(*objects):
        print(*objects)
except:
    def dprint(*objects, sep='', end='\n'): pass

# d, p = [int(x) for x in input().split()]
n = int(input())

d = {}
d[0] = 6  #
d[1] = 2
d[2] = 5  #
d[3] = 5  #
d[4] = 4
d[5] = 5
d[6] = 6  #
d[7] = 3
d[8] = 7
d[9] = 6

no = (0, 2, 3, 6)

r = {v: k for k, v in d.items() if k not in no}
dprint(r)

"""
if n == 3:
    print(7)
    sys.exit(0)
"""

ans = "1" * (n // 2)
if n % 2 == 1:
    ans = "7" + ans[1:]

print(ans)

0