結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー nohakai3nohakai3
提出日時 2022-07-30 11:07:24
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 75 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 8,176 KB
最終ジャッジ日時 2023-09-27 13:06:59
合計ジャッジ時間 2,808 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,720 KB
testcase_01 AC 15 ms
7,720 KB
testcase_02 AC 16 ms
7,720 KB
testcase_03 AC 16 ms
7,780 KB
testcase_04 AC 17 ms
7,784 KB
testcase_05 AC 34 ms
7,788 KB
testcase_06 AC 108 ms
7,960 KB
testcase_07 AC 194 ms
8,120 KB
testcase_08 AC 114 ms
8,012 KB
testcase_09 AC 115 ms
8,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
x=s.count("o")
y=s.count("x")
for i in range(len(s)):
    print(100*x/(x+y))
    if s[i]=="o":
        x-=1
    elif s[i]=="x":
        y-=1
    
    
0