提出 #528676


ソースコード 拡げる

N,K=[int(x) for x in raw_input().split()]; print 1.0*((K-1)*(N-K)*6+N*3-2)/N**3

提出情報

提出日時
問題 D - 乱数生成
ユーザ mcq
言語 Python (2.7.3)
得点 100
コード長 79 Byte
結果 AC
実行時間 75 ms
メモリ 3784 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 22
セット名 テストケース
Sample example_0.txt, example_1.txt, example_2.txt
All example_0.txt, example_1.txt, example_2.txt, handmade_0.txt, handmade_1.txt, handmade_2.txt, handmade_3.txt, handmade_4.txt, handmade_5.txt, random_0.txt, random_1.txt, random_2.txt, random_3.txt, random_4.txt, smallrand_0.txt, smallrand_1.txt, smallrand_2.txt, smallrand_3.txt, smallrand_4.txt, example_0.txt, example_1.txt, example_2.txt
ケース名 結果 実行時間 メモリ
example_0.txt AC 75 ms 3784 KiB
example_1.txt AC 59 ms 3544 KiB
example_2.txt AC 69 ms 3568 KiB
handmade_0.txt AC 63 ms 3652 KiB
handmade_1.txt AC 63 ms 3468 KiB
handmade_2.txt AC 61 ms 3476 KiB
handmade_3.txt AC 60 ms 3548 KiB
handmade_4.txt AC 59 ms 3544 KiB
handmade_5.txt AC 61 ms 3544 KiB
random_0.txt AC 61 ms 3540 KiB
random_1.txt AC 61 ms 3548 KiB
random_2.txt AC 60 ms 3532 KiB
random_3.txt AC 63 ms 3536 KiB
random_4.txt AC 63 ms 3596 KiB
smallrand_0.txt AC 61 ms 3628 KiB
smallrand_1.txt AC 62 ms 3596 KiB
smallrand_2.txt AC 65 ms 3432 KiB
smallrand_3.txt AC 61 ms 3548 KiB
smallrand_4.txt AC 66 ms 3436 KiB