結果

問題 No.1033 乱数サイ
ユーザー tarotaro789tarotaro789
提出日時 2020-08-16 16:14:16
言語 Python3
(3.11.2 + numpy 1.24.2 + scipy 1.10.1)
結果
TLE  
実行時間 -
コード長 228 bytes
コンパイル時間 984 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 258,812 KB
最終ジャッジ日時 2023-08-01 22:04:11
合計ジャッジ時間 5,300 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
12,144 KB
testcase_01 AC 14 ms
7,944 KB
testcase_02 AC 14 ms
7,784 KB
testcase_03 AC 14 ms
7,856 KB
testcase_04 AC 13 ms
7,764 KB
testcase_05 AC 12 ms
7,768 KB
testcase_06 AC 14 ms
7,800 KB
testcase_07 AC 15 ms
7,836 KB
testcase_08 AC 13 ms
7,800 KB
testcase_09 AC 25 ms
8,428 KB
testcase_10 AC 30 ms
8,448 KB
testcase_11 AC 409 ms
20,972 KB
testcase_12 TLE -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

c,r=map(int,input().split())
tmc=c
tmc+=1
#分母and回数
bo=tmc*r

ls=[]
for i in range(c+1):
    for j in range(r):
        ls.append(i)

su=0
bos=1/bo

som=0
for i in ls:
    som+=bos*i

print(som)
    
    

    
    
    
0