結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー takakintakakin
提出日時 2020-04-30 20:55:07
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 196 ms / 2,000 ms
コード長 181 bytes
コンパイル時間 135 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 8,200 KB
最終ジャッジ日時 2023-08-22 16:33:39
合計ジャッジ時間 3,009 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,844 KB
testcase_01 AC 15 ms
7,816 KB
testcase_02 AC 15 ms
7,796 KB
testcase_03 AC 15 ms
7,952 KB
testcase_04 AC 17 ms
7,940 KB
testcase_05 AC 34 ms
7,872 KB
testcase_06 AC 107 ms
8,132 KB
testcase_07 AC 196 ms
8,048 KB
testcase_08 AC 114 ms
8,200 KB
testcase_09 AC 111 ms
8,140 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input=lambda: sys.stdin.readline().rstrip()
S=input()
a,b=S.count("o"),S.count("x")
for i in range(len(S)):
  print(a/(a+b)*100)
  if S[i]=="o":
    a-=1
  else:
    b-=1
0