結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー hiragnhiragn
提出日時 2022-11-10 19:21:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 157 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 8,152 KB
最終ジャッジ日時 2023-10-01 03:18:23
合計ジャッジ時間 2,920 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,848 KB
testcase_01 AC 15 ms
7,740 KB
testcase_02 AC 15 ms
7,844 KB
testcase_03 AC 15 ms
7,776 KB
testcase_04 AC 16 ms
7,844 KB
testcase_05 AC 29 ms
7,892 KB
testcase_06 AC 83 ms
8,016 KB
testcase_07 AC 157 ms
8,124 KB
testcase_08 AC 78 ms
8,124 KB
testcase_09 AC 75 ms
8,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    s = input()
    safe = s.count("o")
    out = s.count("x")

    for c in s:
        print(100 * safe / (safe + out))
        if c == "o":
            safe -= 1
        else:
            out -= 1


if __name__ == "__main__":
    main()
0