結果

問題 No.65 回数の期待値の練習
ユーザー letrangerjpletrangerjp
提出日時 2017-06-18 11:43:20
言語 Ruby
(3.3.0)
結果
AC  
実行時間 2,125 ms / 5,000 ms
コード長 68 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 7,552 KB
実行使用メモリ 22,656 KB
最終ジャッジ日時 2024-04-09 19:29:09
合計ジャッジ時間 31,087 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
外部呼び出し有り
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 869 ms
22,656 KB
testcase_01 AC 875 ms
22,528 KB
testcase_02 AC 957 ms
22,656 KB
testcase_03 AC 1,234 ms
22,656 KB
testcase_04 AC 1,007 ms
22,528 KB
testcase_05 AC 1,053 ms
22,656 KB
testcase_06 AC 1,192 ms
22,656 KB
testcase_07 AC 1,279 ms
22,656 KB
testcase_08 AC 1,369 ms
22,400 KB
testcase_09 AC 1,434 ms
22,400 KB
testcase_10 AC 1,492 ms
22,528 KB
testcase_11 AC 1,574 ms
22,528 KB
testcase_12 AC 1,635 ms
22,400 KB
testcase_13 AC 1,731 ms
22,656 KB
testcase_14 AC 1,777 ms
22,656 KB
testcase_15 AC 1,839 ms
22,656 KB
testcase_16 AC 1,903 ms
22,400 KB
testcase_17 AC 1,996 ms
22,656 KB
testcase_18 AC 2,046 ms
22,528 KB
testcase_19 AC 2,125 ms
22,528 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N=eval`dd`
p (1..1e6).map{n=0;(1..99).find{N<=n+=1+rand(6)}}.sum/1e6
0