結果

問題 No.75 回数の期待値の問題
ユーザー gigurururugigurururu
提出日時 2014-11-23 23:30:25
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 125 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 11,520 KB
実行使用メモリ 32,488 KB
最終ジャッジ日時 2023-08-30 22:23:26
合計ジャッジ時間 37,822 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,066 ms
32,488 KB
testcase_01 AC 1,061 ms
16,160 KB
testcase_02 AC 1,075 ms
16,120 KB
testcase_03 AC 1,701 ms
16,056 KB
testcase_04 AC 1,074 ms
16,140 KB
testcase_05 AC 1,074 ms
16,284 KB
testcase_06 AC 1,074 ms
16,316 KB
testcase_07 AC 1,772 ms
16,132 KB
testcase_08 AC 1,852 ms
16,324 KB
testcase_09 AC 1,942 ms
16,280 KB
testcase_10 AC 2,078 ms
16,052 KB
testcase_11 AC 2,260 ms
16,140 KB
testcase_12 AC 2,522 ms
16,144 KB
testcase_13 AC 2,636 ms
16,100 KB
testcase_14 AC 2,778 ms
16,272 KB
testcase_15 AC 3,612 ms
16,132 KB
testcase_16 TLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

k=gets.to_i
i=0
200000.times{
  s=0
  while s!=k
    i+=1
    s=0 if s>k
    s+=[*1..6].sample
  end
}
p i/200000.0
0