結果

問題 No.58 イカサマなサイコロ
ユーザー cielciel
提出日時 2015-06-19 23:35:38
言語 Ruby
(3.2.2)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 108 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 11,292 KB
実行使用メモリ 15,492 KB
最終ジャッジ日時 2023-09-21 10:18:22
合計ジャッジ時間 18,449 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 743 ms
15,152 KB
testcase_01 WA -
testcase_02 AC 738 ms
15,492 KB
testcase_03 AC 442 ms
15,232 KB
testcase_04 AC 1,924 ms
15,124 KB
testcase_05 AC 2,214 ms
15,368 KB
testcase_06 AC 2,777 ms
15,492 KB
testcase_07 AC 733 ms
15,456 KB
testcase_08 AC 1,332 ms
15,388 KB
testcase_09 AC 2,790 ms
15,160 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

N,K=$<.map &:to_i
s=0.0
(t=9**6).times{a=0
N.times{|i|a+=rand(1..6)-rand((i<K ? 4:1)..6)}
s+=1 if a<0}
p s/t
0