結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー ThetaTheta
提出日時 2022-10-18 17:40:13
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 165 ms / 2,000 ms
コード長 285 bytes
コンパイル時間 485 ms
コンパイル使用メモリ 10,520 KB
実行使用メモリ 8,188 KB
最終ジャッジ日時 2023-09-11 10:21:21
合計ジャッジ時間 3,674 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,780 KB
testcase_01 AC 16 ms
7,796 KB
testcase_02 AC 16 ms
7,732 KB
testcase_03 AC 15 ms
7,772 KB
testcase_04 AC 17 ms
7,936 KB
testcase_05 AC 31 ms
7,848 KB
testcase_06 AC 92 ms
8,044 KB
testcase_07 AC 165 ms
8,088 KB
testcase_08 AC 86 ms
8,100 KB
testcase_09 AC 79 ms
8,188 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    S = input()
    o_count = S.count("o")
    x_count = S.count("x")

    for letter in S:
        print(100 * o_count / (o_count + x_count))
        if letter == "o":
            o_count -= 1
        else:
            x_count -= 1


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