結果
問題 | No.662 スロットマシーン |
ユーザー | ciel |
提出日時 | 2018-01-31 00:14:50 |
言語 | Ruby (3.3.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 60 ms |
コンパイル使用メモリ | 11,564 KB |
実行使用メモリ | 813,016 KB |
最終ジャッジ日時 | 2023-08-28 16:43:39 |
合計ジャッジ時間 | 6,004 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 78 ms
19,504 KB |
testcase_01 | AC | 79 ms
15,272 KB |
testcase_02 | AC | 224 ms
38,688 KB |
testcase_03 | MLE | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
コンパイルメッセージ
Main.rb:15: warning: `*' interpreted as argument prefix Syntax OK
ソースコード
h={} r=[s=0]*5 5.times.map{|i| x,y=gets.split h[x]=[y.to_i,i] } a,b,c=3.times.map{gets.to_i.times.map{gets.chomp}} a.product(b,c).map{|x,y,z| if x==y&&y==z r[h[x][1]]+=5 s+=h[x][0] end } p s*5.0/a.size/b.size/c.size p *r