結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー motor_radialmotor_radial
提出日時 2019-08-17 22:24:33
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 211 ms / 2,000 ms
コード長 168 bytes
コンパイル時間 333 ms
コンパイル使用メモリ 11,740 KB
実行使用メモリ 10,200 KB
最終ジャッジ日時 2023-10-25 23:38:10
合計ジャッジ時間 2,823 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
9,960 KB
testcase_01 AC 27 ms
9,960 KB
testcase_02 AC 26 ms
9,960 KB
testcase_03 AC 27 ms
9,964 KB
testcase_04 AC 28 ms
10,012 KB
testcase_05 AC 45 ms
10,036 KB
testcase_06 AC 119 ms
10,116 KB
testcase_07 AC 211 ms
10,120 KB
testcase_08 AC 131 ms
10,156 KB
testcase_09 AC 125 ms
10,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=input()
o_cnt=S.count("o")
x_cnt=S.count("x")
for i in range(len(S)):
    print(o_cnt*100/(o_cnt+x_cnt))
    if S[i]=="o":
        o_cnt-=1
    else:
        x_cnt-=1
0