結果

問題 No.83 最大マッチング
ユーザー 🍡yurahuna🍡yurahuna
提出日時 2015-12-20 12:48:04
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 164 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 7,124 KB
実行使用メモリ 6,996 KB
最終ジャッジ日時 2023-10-17 14:12:37
合計ジャッジ時間 974 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

N = input()
x = N
s = []

while x > 0:
    if x >= 4 or x == 2:
        x = x-2
        s += "1"
    elif x == 3:
        x = x-3
        s += "7"

print "".join(s)
0