結果

問題 No.1033 乱数サイ
ユーザー tarotaro789tarotaro789
提出日時 2020-08-16 16:11:17
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
TLE  
実行時間 -
コード長 242 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 33,876 KB
最終ジャッジ日時 2023-08-01 22:03:54
合計ジャッジ時間 5,454 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 13 ms
7,872 KB
testcase_01 AC 13 ms
7,928 KB
testcase_02 AC 15 ms
7,816 KB
testcase_03 AC 14 ms
7,976 KB
testcase_04 AC 14 ms
7,792 KB
testcase_05 AC 14 ms
7,900 KB
testcase_06 AC 14 ms
7,784 KB
testcase_07 AC 14 ms
7,792 KB
testcase_08 AC 13 ms
7,792 KB
testcase_09 AC 23 ms
8,700 KB
testcase_10 AC 28 ms
9,144 KB
testcase_11 AC 453 ms
33,876 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)
ls=sorted(ls)

su=0
bos=1/bo

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

print(som)
    
    

    
    
    
0