結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー ApoiApoi
提出日時 2019-02-02 00:28:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 193 ms / 2,000 ms
コード長 243 bytes
コンパイル時間 199 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 8,160 KB
最終ジャッジ日時 2023-08-16 03:23:13
合計ジャッジ時間 3,148 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,884 KB
testcase_01 AC 16 ms
7,832 KB
testcase_02 AC 16 ms
7,788 KB
testcase_03 AC 15 ms
7,860 KB
testcase_04 AC 17 ms
7,796 KB
testcase_05 AC 32 ms
7,860 KB
testcase_06 AC 103 ms
8,160 KB
testcase_07 AC 193 ms
8,084 KB
testcase_08 AC 113 ms
8,136 KB
testcase_09 AC 109 ms
8,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
data = input()
number_of_box = len(data)
box_safe = data.count('o')
box_out = number_of_box - box_safe
for i in range(number_of_box):
    print(box_safe / (number_of_box - i) * 100)
    if data[i] == 'o':
        box_safe -= 1
0