結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー ebicochinealebicochineal
提出日時 2018-03-23 22:40:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 178 ms / 2,000 ms
コード長 217 bytes
コンパイル時間 127 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 8,312 KB
最終ジャッジ日時 2023-09-07 03:11:42
合計ジャッジ時間 2,732 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,812 KB
testcase_01 AC 16 ms
7,796 KB
testcase_02 AC 16 ms
7,816 KB
testcase_03 AC 16 ms
7,736 KB
testcase_04 AC 16 ms
7,816 KB
testcase_05 AC 32 ms
7,752 KB
testcase_06 AC 95 ms
7,972 KB
testcase_07 AC 178 ms
8,088 KB
testcase_08 AC 107 ms
8,252 KB
testcase_09 AC 84 ms
8,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#! /usr/bin/env python3

S = input()
l = len(S)
c = S.count('o')
for i in S:
    if c == 0:
        print(0)
    else:
        print(100.0/(l/c))
    if i == 'o':
        c -= 1
        l -= 1
    else:
        l -= 1
0