結果

問題 No.83 最大マッチング
ユーザー mitsushinomitsushino
提出日時 2018-01-16 11:49:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 249 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 10,588 KB
実行使用メモリ 10,212 KB
最終ジャッジ日時 2023-08-25 18:31:56
合計ジャッジ時間 1,225 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,872 KB
testcase_01 AC 16 ms
7,808 KB
testcase_02 AC 17 ms
7,728 KB
testcase_03 AC 16 ms
7,776 KB
testcase_04 AC 16 ms
7,728 KB
testcase_05 AC 15 ms
7,724 KB
testcase_06 AC 15 ms
7,768 KB
testcase_07 AC 15 ms
7,800 KB
testcase_08 AC 15 ms
7,716 KB
testcase_09 AC 18 ms
8,728 KB
testcase_10 AC 31 ms
9,772 KB
testcase_11 AC 37 ms
10,212 KB
testcase_12 AC 36 ms
9,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

if __name__ == '__main__':
    N = int(input())
    q, m = divmod(N, 2)
    if m == 0:
        print(*[1 for _ in range(q)], sep='')
    else:
        q -= 1
        l = [7] + [1 for _ in range(q)]
        print(*l, sep='')
0