結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー iad_2889iad_2889
提出日時 2019-05-15 09:04:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 192 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 533 ms
コンパイル使用メモリ 10,448 KB
実行使用メモリ 8,244 KB
最終ジャッジ日時 2023-10-11 16:35:30
合計ジャッジ時間 3,128 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,760 KB
testcase_01 AC 15 ms
7,816 KB
testcase_02 AC 16 ms
7,752 KB
testcase_03 AC 16 ms
7,804 KB
testcase_04 AC 18 ms
7,788 KB
testcase_05 AC 34 ms
7,820 KB
testcase_06 AC 104 ms
8,056 KB
testcase_07 AC 192 ms
8,084 KB
testcase_08 AC 110 ms
8,056 KB
testcase_09 AC 105 ms
8,244 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
alive = S.count("o")
die = S.count("x")
room = len(S)
for s in S:
    print((alive / room)*100)
    room-=1
    if s == "o":
        alive-=1
    else:
        die-=1
0