結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー NiER_Replicant6NiER_Replicant6
提出日時 2018-03-23 23:35:41
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 164 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 97 ms
コンパイル使用メモリ 10,504 KB
実行使用メモリ 9,040 KB
最終ジャッジ日時 2023-09-07 04:23:28
合計ジャッジ時間 2,903 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,872 KB
testcase_01 AC 16 ms
7,872 KB
testcase_02 AC 16 ms
7,796 KB
testcase_03 AC 16 ms
7,800 KB
testcase_04 AC 17 ms
7,852 KB
testcase_05 AC 31 ms
8,048 KB
testcase_06 AC 91 ms
8,560 KB
testcase_07 AC 164 ms
9,040 KB
testcase_08 AC 156 ms
8,904 KB
testcase_09 AC 141 ms
8,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A = input()
A = list(A)
C=0
D=0
E = len(A)
for i in A:
    if i=="o":
        C = C+1
    if i=="x":
        pass
print("{:.9}".format((C/E)*100))
for i in range(E):
    if A[i]=="o":
        C = C-1
        E = E-1
    else:
        E = E-1
    try:

        print("{:.9}".format((C/E)*100))
    except:
        pass

#print("{:.9}".format((C/B)*100))
#C = 0
#A.pop(0)
0