結果

問題 No.83 最大マッチング
ユーザー FromBooskaFromBooska
提出日時 2023-02-14 22:01:14
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 5,000 ms
コード長 183 bytes
コンパイル時間 887 ms
コンパイル使用メモリ 87,260 KB
実行使用メモリ 71,524 KB
最終ジャッジ日時 2023-09-24 09:13:13
合計ジャッジ時間 3,111 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
71,236 KB
testcase_01 AC 67 ms
71,336 KB
testcase_02 AC 68 ms
71,356 KB
testcase_03 AC 68 ms
71,416 KB
testcase_04 AC 68 ms
71,064 KB
testcase_05 AC 68 ms
71,420 KB
testcase_06 AC 69 ms
71,204 KB
testcase_07 AC 69 ms
71,328 KB
testcase_08 AC 67 ms
71,524 KB
testcase_09 AC 67 ms
71,352 KB
testcase_10 AC 69 ms
71,356 KB
testcase_11 AC 70 ms
71,228 KB
testcase_12 AC 68 ms
71,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 1をひたすら作る、最後3本余っていれば7を最初に持ってくる

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