結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー 👑 hos.lyrichos.lyric
提出日時 2020-03-31 10:04:00
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 95 bytes
コンパイル時間 566 ms
コンパイル使用メモリ 11,336 KB
実行使用メモリ 29,432 KB
最終ジャッジ日時 2023-09-06 05:38:33
合計ジャッジ時間 4,431 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 79 ms
15,100 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 454 ms
29,028 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

p=q=0.0
gets.chomp.chars.reverse.map{|c|
  p+=(c=='o')?1:0;
  q+=1
  p/q
}.reverse.map{|x|p x}
0