結果

問題 No.667 Mice's Luck(ネズミ達の運)
ユーザー caleicalei
提出日時 2020-01-25 19:07:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 204 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 8,180 KB
最終ジャッジ日時 2023-10-12 04:41:12
合計ジャッジ時間 2,862 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,804 KB
testcase_01 AC 16 ms
7,784 KB
testcase_02 AC 14 ms
7,896 KB
testcase_03 AC 15 ms
7,924 KB
testcase_04 AC 17 ms
7,840 KB
testcase_05 AC 34 ms
7,792 KB
testcase_06 AC 109 ms
8,072 KB
testcase_07 AC 204 ms
8,136 KB
testcase_08 AC 119 ms
8,088 KB
testcase_09 AC 117 ms
8,180 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# yukicoder No.667 Mice's Luck 2020/01/25

s=input()
n=len(s)
safe=s.count('o')
trap=n-safe
for i in range(n):
    print(100*(safe/n))
    if s[i]=='o':
        safe-=1
    else:
        trap-=1
    n-=1
0