結果

問題 No.83 最大マッチング
ユーザー quaspinSWquaspinSW
提出日時 2017-04-13 20:41:32
言語 Python2
(2.7.18)
結果
TLE  
実行時間 -
コード長 239 bytes
コンパイル時間 631 ms
コンパイル使用メモリ 6,612 KB
実行使用メモリ 11,656 KB
最終ジャッジ日時 2023-09-25 16:28:25
合計ジャッジ時間 7,767 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,880 KB
testcase_01 AC 11 ms
6,048 KB
testcase_02 AC 11 ms
5,856 KB
testcase_03 AC 12 ms
5,928 KB
testcase_04 AC 11 ms
6,152 KB
testcase_05 AC 11 ms
5,964 KB
testcase_06 AC 12 ms
6,052 KB
testcase_07 AC 11 ms
5,956 KB
testcase_08 AC 11 ms
5,860 KB
testcase_09 AC 158 ms
6,172 KB
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python

num = int(raw_input())
sigma = 0
shou = num / 2
if num % 2 == 0:
    for i in range(shou):
        sigma += 10**i
else:
    sigma += 7 * (10**(shou-1))
    for i in range(shou-1):
        sigma += 10**i
print(sigma)
0