結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー gimgim
提出日時 2018-04-10 15:09:18
言語 Python2
(2.7.18)
結果
AC  
実行時間 170 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 244 ms
コンパイル使用メモリ 6,712 KB
実行使用メモリ 9,224 KB
最終ジャッジ日時 2023-09-09 03:46:34
合計ジャッジ時間 1,849 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,076 KB
testcase_01 AC 11 ms
5,852 KB
testcase_02 AC 11 ms
5,920 KB
testcase_03 AC 11 ms
5,956 KB
testcase_04 AC 13 ms
5,880 KB
testcase_05 AC 27 ms
6,328 KB
testcase_06 AC 89 ms
7,272 KB
testcase_07 AC 170 ms
9,168 KB
testcase_08 AC 124 ms
9,224 KB
testcase_09 AC 120 ms
9,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=raw_input()

box=len(S)
safe=S.count('o')
out=S.count('x')

for a in range(box):
    kakuritu="{0:.13f}".format(float(safe)/(safe+out)*100)
    print kakuritu
    if S[a]=='o':
        safe-=1
    else:
        out-=1



0