結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー trineutrontrineutron
提出日時 2020-12-20 15:03:21
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 207 ms / 2,000 ms
コード長 132 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 11,752 KB
実行使用メモリ 10,104 KB
最終ジャッジ日時 2023-10-21 10:42:21
合計ジャッジ時間 3,909 ms
ジャッジサーバーID
(参考情報)
judge12 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,880 KB
testcase_01 AC 29 ms
9,880 KB
testcase_02 AC 29 ms
9,880 KB
testcase_03 AC 30 ms
9,884 KB
testcase_04 AC 31 ms
9,940 KB
testcase_05 AC 47 ms
9,952 KB
testcase_06 AC 118 ms
10,032 KB
testcase_07 AC 207 ms
10,056 KB
testcase_08 AC 133 ms
10,060 KB
testcase_09 AC 124 ms
10,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
n = len(s)
safe = s.count('o')
for i in range(n):
    print(safe / (n - i) * 100)
    if s[i] == 'o':
        safe -= 1
0