結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー _araran__araran_
提出日時 2018-04-13 15:58:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 236 bytes
コンパイル時間 271 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 12,448 KB
最終ジャッジ日時 2023-09-09 04:34:06
合計ジャッジ時間 4,774 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,260 KB
testcase_01 AC 16 ms
7,876 KB
testcase_02 AC 16 ms
7,880 KB
testcase_03 AC 16 ms
7,876 KB
testcase_04 AC 20 ms
7,824 KB
testcase_05 AC 501 ms
7,776 KB
testcase_06 TLE -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

def a(str):
    o_count = str.count("o")
    x_count = str.count("x")
    ret = o_count / (o_count + x_count ) * 100
    print(ret)

first = input()
loop = len(first)
for i in range(loop):
    a(first)
    first = first[1:] 
0