結果

問題 No.83 最大マッチング
ユーザー nbisco
提出日時 2016-03-21 21:01:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 229 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 11,136 KB
最終ジャッジ日時 2024-10-01 12:26:21
合計ジャッジ時間 1,199 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 4 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
#fileencoding: utf-8

N = int(input())

if N == 3:
    print(7)
else:
    ans = ["1" for i in range(N//2)]
    N -= N//2 * 2
    if N == 1:
        ans.pop()
        ans.append("7")
    print("".join(ans))
0