結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー kotatsugamekotatsugame
提出日時 2018-04-07 23:51:32
言語 Ruby
(3.3.0)
結果
AC  
実行時間 640 ms / 2,000 ms
コード長 78 bytes
コンパイル時間 250 ms
コンパイル使用メモリ 11,480 KB
実行使用メモリ 27,560 KB
最終ジャッジ日時 2023-09-08 18:18:01
合計ジャッジ時間 4,954 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
15,100 KB
testcase_01 AC 78 ms
15,092 KB
testcase_02 AC 80 ms
15,148 KB
testcase_03 AC 79 ms
15,172 KB
testcase_04 AC 86 ms
15,120 KB
testcase_05 AC 134 ms
16,800 KB
testcase_06 AC 358 ms
23,592 KB
testcase_07 AC 640 ms
27,560 KB
testcase_08 AC 490 ms
27,436 KB
testcase_09 AC 481 ms
27,324 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: `:' after local variable or literal is interpreted as binary operator
Main.rb:1: warning: even though it seems like symbol literal
Syntax OK

ソースコード

diff #

a=gets.count('o');i=$_.size;$_.chop.chars.map{|c|p 1e2*a/i-=1;a-=c=='o' ?1 :0}
0