結果

問題 No.83 最大マッチング
ユーザー tkmgami2tkmgami2
提出日時 2019-12-12 10:05:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 383 bytes
コンパイル時間 692 ms
コンパイル使用メモリ 10,504 KB
実行使用メモリ 8,020 KB
最終ジャッジ日時 2023-09-07 01:21:54
合計ジャッジ時間 1,242 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

""" 
マッチの本数の対応表
0-6
1-2
2-5
3-5
4-4
5-5
6-6
7-3
8-7
9-6

1-2本
7-3本


同じ桁を探すより次の桁に行った方が値が高い
2本あれば次の桁
3本の時は次の桁に行けないので7をつくる

x = 2x + 3 or 2xとする

"""


N = int(input())
ans = ""
if N%2 == 0:
    ans = "1"*(N//2)
else:
    ans = "1"*((N-3)//2) + "7"
    
print(ans)
0