結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー santafe1006santafe1006
提出日時 2018-12-16 21:19:40
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 187 ms / 2,000 ms
コード長 165 bytes
コンパイル時間 1,189 ms
コンパイル使用メモリ 11,688 KB
実行使用メモリ 10,028 KB
最終ジャッジ日時 2023-10-25 22:21:18
合計ジャッジ時間 2,074 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,836 KB
testcase_01 AC 27 ms
9,836 KB
testcase_02 AC 28 ms
9,836 KB
testcase_03 AC 28 ms
9,840 KB
testcase_04 AC 29 ms
9,892 KB
testcase_05 AC 46 ms
9,908 KB
testcase_06 AC 108 ms
9,988 KB
testcase_07 AC 187 ms
10,028 KB
testcase_08 AC 158 ms
10,028 KB
testcase_09 AC 146 ms
10,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
n = len(s)
cnt = s.count('o')
for i in range(n):
    k = s[i]
    p = cnt*100/(n-i)
    if k == 'o' :
        cnt -=1
    print('{:.13f}'.format(p))
    
0