結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー ssmkzkssmkzk
提出日時 2018-08-27 17:32:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 729 ms
コンパイル使用メモリ 10,528 KB
実行使用メモリ 8,164 KB
最終ジャッジ日時 2023-09-17 21:15:14
合計ジャッジ時間 3,935 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,832 KB
testcase_01 AC 15 ms
7,768 KB
testcase_02 AC 16 ms
7,816 KB
testcase_03 AC 16 ms
7,812 KB
testcase_04 AC 18 ms
7,676 KB
testcase_05 AC 34 ms
7,792 KB
testcase_06 AC 109 ms
8,068 KB
testcase_07 AC 194 ms
8,144 KB
testcase_08 AC 117 ms
8,072 KB
testcase_09 AC 110 ms
8,164 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
o_count = S.count("o")
#x_count = len(S) - o_count
mom = len(S)

for i in range(len(S)):
    print(o_count/mom *100)
    if S[i] == "o":
        o_count -= 1
        mom -= 1
    else:
        mom -= 1

0