結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,804 KB
testcase_01 AC 16 ms
7,956 KB
testcase_02 AC 15 ms
7,860 KB
testcase_03 AC 16 ms
7,808 KB
testcase_04 AC 29 ms
7,820 KB
testcase_05 AC 639 ms
7,800 KB
testcase_06 TLE -
testcase_07 TLE -
testcase_08 RE -
testcase_09 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

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

first = input()

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