結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー dangodango
提出日時 2023-06-06 21:01:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 129 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 87,300 KB
実行使用メモリ 77,444 KB
最終ジャッジ日時 2023-08-28 10:49:49
合計ジャッジ時間 3,394 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,888 KB
testcase_01 AC 72 ms
71,280 KB
testcase_02 AC 72 ms
71,060 KB
testcase_03 AC 72 ms
71,260 KB
testcase_04 AC 79 ms
75,428 KB
testcase_05 AC 98 ms
76,632 KB
testcase_06 AC 143 ms
77,348 KB
testcase_07 AC 194 ms
77,444 KB
testcase_08 AC 105 ms
77,212 KB
testcase_09 AC 102 ms
77,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()
A, B = S.count("o"), S.count("x")
for C in S:
  print(100 * A / (A + B))
  if C == "o":
    A -= 1
  else:
    B -= 1
0