結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー ssmkzkssmkzk
提出日時 2018-08-23 22:17:54
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 184 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,552 KB
実行使用メモリ 8,332 KB
最終ジャッジ日時 2023-08-28 10:00:06
合計ジャッジ時間 2,229 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 16 ms
7,892 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 94 ms
8,144 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)
    if S[i] == "o":
        o_count -= 1
        mom -= 1


0