結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー nebukuro09nebukuro09
提出日時 2018-04-07 23:24:54
言語 Python2
(2.7.18)
結果
AC  
実行時間 99 ms / 2,000 ms
コード長 188 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 6,668 KB
実行使用メモリ 6,016 KB
最終ジャッジ日時 2023-09-08 18:17:42
合計ジャッジ時間 2,829 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,880 KB
testcase_01 AC 11 ms
5,996 KB
testcase_02 AC 11 ms
5,860 KB
testcase_03 AC 11 ms
5,848 KB
testcase_04 AC 12 ms
5,884 KB
testcase_05 AC 20 ms
6,016 KB
testcase_06 AC 56 ms
5,968 KB
testcase_07 AC 99 ms
5,976 KB
testcase_08 AC 92 ms
5,972 KB
testcase_09 AC 85 ms
5,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = raw_input()
N = len(S)
o = S.count('o')
x = S.count('x')

for i in xrange(N):
    print '%.09f' % (1.0 * o / (o + x) * 100)
    if S[i] == 'o':
        o -= 1
    else:
        x -= 1
0