結果
問題 | No.58 イカサマなサイコロ |
ユーザー | ciel |
提出日時 | 2015-06-19 23:33:27 |
言語 | Ruby (3.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 108 bytes |
コンパイル時間 | 36 ms |
コンパイル使用メモリ | 11,576 KB |
実行使用メモリ | 15,468 KB |
最終ジャッジ日時 | 2023-09-21 10:16:50 |
合計ジャッジ時間 | 18,123 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 736 ms
15,288 KB |
testcase_01 | AC | 3,021 ms
15,392 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 1,907 ms
15,420 KB |
testcase_05 | AC | 2,201 ms
15,392 KB |
testcase_06 | AC | 2,781 ms
15,204 KB |
testcase_07 | AC | 732 ms
15,244 KB |
testcase_08 | AC | 1,316 ms
15,152 KB |
testcase_09 | AC | 2,760 ms
15,240 KB |
コンパイルメッセージ
Syntax OK
ソースコード
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