結果

問題 No.83 最大マッチング
ユーザー yoshi_kyoshi_k
提出日時 2017-09-17 17:17:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 469 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-04-25 14:57:38
合計ジャッジ時間 1,056 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,880 KB
testcase_01 AC 27 ms
10,880 KB
testcase_02 AC 26 ms
10,752 KB
testcase_03 WA -
testcase_04 AC 30 ms
10,880 KB
testcase_05 WA -
testcase_06 AC 30 ms
10,752 KB
testcase_07 WA -
testcase_08 AC 27 ms
10,752 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 27 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)

print(ans)

0