結果

問題 No.83 最大マッチング
コンテスト
ユーザー yoshi_k
提出日時 2017-09-17 17:26:49
言語 Python3
(3.14.3 + numpy 2.4.4 + scipy 1.17.1)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
AC  
実行時間 165 ms / 5,000 ms
コード長 516 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 661 ms
コンパイル使用メモリ 20,824 KB
実行使用メモリ 15,488 KB
最終ジャッジ日時 2026-05-08 09:02:47
合計ジャッジ時間 3,219 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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