結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー ohanaohana
提出日時 2023-10-13 17:44:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 392 ms
コンパイル使用メモリ 86,992 KB
実行使用メモリ 77,764 KB
最終ジャッジ日時 2023-10-13 17:44:56
合計ジャッジ時間 3,386 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
71,364 KB
testcase_01 AC 63 ms
71,488 KB
testcase_02 AC 64 ms
71,544 KB
testcase_03 AC 66 ms
71,532 KB
testcase_04 AC 70 ms
75,288 KB
testcase_05 AC 82 ms
76,720 KB
testcase_06 AC 116 ms
77,436 KB
testcase_07 AC 123 ms
77,764 KB
testcase_08 AC 110 ms
77,592 KB
testcase_09 AC 124 ms
77,688 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
o = s.count("o")
x = s.count("x")

for c in s:
    print(format(o / (o + x) * 100, ".8f"))
    if c == "o":
        o -= 1
    else:
        x -= 1
0