結果

問題 No.1033 乱数サイ
ユーザー kkron4221kkron4221
提出日時 2020-05-01 10:14:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 234 bytes
コンパイル時間 471 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 8,528 KB
最終ジャッジ日時 2023-08-25 01:02:03
合計ジャッジ時間 1,535 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,812 KB
testcase_01 AC 15 ms
7,820 KB
testcase_02 AC 15 ms
7,856 KB
testcase_03 AC 15 ms
7,808 KB
testcase_04 AC 15 ms
7,864 KB
testcase_05 AC 15 ms
7,860 KB
testcase_06 AC 15 ms
7,812 KB
testcase_07 AC 15 ms
7,780 KB
testcase_08 AC 15 ms
7,816 KB
testcase_09 AC 15 ms
8,148 KB
testcase_10 AC 14 ms
8,184 KB
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

def roop_n(n):
    ans = 0
    if n == 0:
        pass
    else:
        ans = n + roop_n(n - 1)
    return ans


n, k = map(int, input().split())

denominator = (n + 1) * k

numerator = k * (roop_n(n))

print(numerator / denominator)
0