結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー pluto77pluto77
提出日時 2018-03-24 10:00:53
言語 Python2
(2.7.18)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 185 bytes
コンパイル時間 56 ms
コンパイル使用メモリ 6,500 KB
実行使用メモリ 6,128 KB
最終ジャッジ日時 2023-09-07 08:22:46
合計ジャッジ時間 2,416 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,880 KB
testcase_01 AC 10 ms
5,960 KB
testcase_02 AC 11 ms
5,916 KB
testcase_03 AC 10 ms
5,840 KB
testcase_04 AC 10 ms
6,044 KB
testcase_05 AC 18 ms
6,032 KB
testcase_06 AC 58 ms
5,960 KB
testcase_07 AC 99 ms
6,032 KB
testcase_08 AC 90 ms
6,128 KB
testcase_09 AC 89 ms
5,924 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki667

s=raw_input()
co=s.count('o')
cx=s.count('x')
i=0
while i<len(s):
 x=(1.0*co/(co+cx))*100
 print '%.7f' % x
 if s[i]=='o':
  co-=1
 else:
  cx-=1
# print '[', co,cx,']'
 i+=1
0