結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
12,228 KB
testcase_01 AC 16 ms
7,856 KB
testcase_02 AC 15 ms
7,996 KB
testcase_03 AC 15 ms
7,864 KB
testcase_04 AC 19 ms
7,940 KB
testcase_05 AC 500 ms
7,960 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