結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー cielciel
提出日時 2018-03-29 02:14:03
言語 Ruby
(3.3.0)
結果
AC  
実行時間 635 ms / 2,000 ms
コード長 100 bytes
コンパイル時間 321 ms
コンパイル使用メモリ 11,224 KB
実行使用メモリ 15,860 KB
最終ジャッジ日時 2023-09-07 20:11:07
合計ジャッジ時間 4,946 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,260 KB
testcase_01 AC 81 ms
15,016 KB
testcase_02 AC 80 ms
15,168 KB
testcase_03 AC 82 ms
15,072 KB
testcase_04 AC 87 ms
15,152 KB
testcase_05 AC 137 ms
15,712 KB
testcase_06 AC 354 ms
15,776 KB
testcase_07 AC 635 ms
15,860 KB
testcase_08 AC 478 ms
15,792 KB
testcase_09 AC 488 ms
15,676 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

s=gets.chomp
a,b=s.count(?o),s.count(?x)
s.size.times{|i|
	p a*100.0/(a+b)
	s[i]==?o ? a-=1 : b-=1
}
0