結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー brthyyjpbrthyyjp
提出日時 2021-06-15 21:46:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 195 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 1,537 ms
コンパイル使用メモリ 86,584 KB
実行使用メモリ 86,980 KB
最終ジャッジ日時 2023-08-27 18:21:45
合計ジャッジ時間 4,286 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,424 KB
testcase_01 AC 69 ms
71,268 KB
testcase_02 AC 71 ms
71,348 KB
testcase_03 AC 71 ms
71,348 KB
testcase_04 AC 78 ms
75,352 KB
testcase_05 AC 96 ms
76,628 KB
testcase_06 AC 138 ms
81,416 KB
testcase_07 AC 195 ms
86,980 KB
testcase_08 AC 112 ms
85,440 KB
testcase_09 AC 110 ms
85,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())
n = len(s)
ans = []
x = s.count('o')
for i in range(n):
    p = x/(n-i)
    p *= 100
    ans.append(p)
    if s[i] == 'o':
        x -= 1
print(*ans, sep='\n')
0