結果

問題 No.83 最大マッチング
ユーザー maburoemaburoe
提出日時 2019-05-23 13:30:30
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 279 bytes
コンパイル時間 163 ms
コンパイル使用メモリ 11,824 KB
実行使用メモリ 10,284 KB
最終ジャッジ日時 2023-10-17 11:28:09
合計ジャッジ時間 1,363 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

total_num = int(input())

num_for_1 = 2
num_for_7 = 3

answer = ""
if total_num % 2 == 0:
    for i in range(total_num // num_for_1):
        answer += "1"
else:
    answer = "7"
    for i in range((total_num - num_for_7) // num_for_1):
        answer += "1"

print(int(answer))
0