結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー osrgy01osrgy01
提出日時 2021-04-17 10:32:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 224 ms / 2,000 ms
コード長 235 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 10,604 KB
実行使用メモリ 8,236 KB
最終ジャッジ日時 2023-09-16 17:11:24
合計ジャッジ時間 3,011 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,800 KB
testcase_01 AC 16 ms
7,784 KB
testcase_02 AC 17 ms
7,780 KB
testcase_03 AC 18 ms
7,780 KB
testcase_04 AC 24 ms
7,788 KB
testcase_05 AC 36 ms
7,928 KB
testcase_06 AC 118 ms
8,168 KB
testcase_07 AC 224 ms
8,056 KB
testcase_08 AC 136 ms
8,236 KB
testcase_09 AC 131 ms
8,152 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
a,b=s.count('o'),s.count('x')
print(100*(a/(a+b)))
for i,j in enumerate(s):
    if i==len(s)-1:
        break
    if j=='o':
        a-=1
        if a<0: a=0
    else:
        b-=1
        if b<0: b=0
    print(100*(a/(a+b)))
0