結果

問題 No.83 最大マッチング
ユーザー ramendaisuki
提出日時 2020-03-20 22:05:07
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 331 bytes
コンパイル時間 209 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,504 KB
最終ジャッジ日時 2024-12-15 05:57:12
合計ジャッジ時間 19,701 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 6 RE * 1 TLE * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
if n % 2 == 0:
    x = int(n / 2)
    ans = 0
    for i in range(1, x + 1):
        ans += 10**(x - i)
else:
    ans = 0
    if n == 1:
        pass
    else:
        x = int(n // 2)
        y = int(n % 2)
        ans = 7 * 10 ** (x-1)
        for i in range(1, x):
            ans += 10 ** ((x-1) -i)

print(ans)
0