結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー otsunekootsuneko
提出日時 2021-05-06 10:25:55
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 209 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 415 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 81,800 KB
最終ジャッジ日時 2023-10-12 03:40:27
合計ジャッジ時間 4,300 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 78 ms
71,132 KB
testcase_01 AC 76 ms
71,224 KB
testcase_02 AC 75 ms
71,380 KB
testcase_03 AC 77 ms
71,560 KB
testcase_04 AC 85 ms
75,384 KB
testcase_05 AC 106 ms
76,816 KB
testcase_06 AC 158 ms
79,716 KB
testcase_07 AC 209 ms
81,800 KB
testcase_08 AC 121 ms
81,564 KB
testcase_09 AC 117 ms
81,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(input())

maru = S.count("o")
batsu = len(S)-maru
for s in S:
    if s == "o":
        print(maru/(maru+batsu)*100)
        maru -= 1
    else:
        print(maru/(maru+batsu)*100)
        batsu -= 1
0