結果

問題 No.83 最大マッチング
ユーザー 3kx3kx
提出日時 2017-06-08 16:09:40
言語 Python2
(2.7.18)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 171 bytes
コンパイル時間 323 ms
コンパイル使用メモリ 7,148 KB
実行使用メモリ 6,776 KB
最終ジャッジ日時 2023-10-23 19:46:19
合計ジャッジ時間 1,316 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

n = int(raw_input())
t = n
s = ""
while t > 1:
    if t % 2 == 1:
        s = s + "7"
        t = t - 3
    elif t >= 2:
        s = s + "1"
        t = t - 2
print int(s)
0