結果
問題 | No.667 Mice's Luck(ネズミ達の運) |
ユーザー |
![]() |
提出日時 | 2020-01-21 13:58:04 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 190 ms / 2,000 ms |
コード長 | 304 bytes |
コンパイル時間 | 82 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 23,552 KB |
最終ジャッジ日時 | 2024-07-05 16:12:23 |
合計ジャッジ時間 | 2,759 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
import sysread = sys.stdin.buffer.readreadline = sys.stdin.buffer.readlinereadlines = sys.stdin.buffer.readlinesS = read().rstrip()o = S.count(b'o')rest = len(S)prob = []for s in S:prob.append(o/rest*100)if s == ord('o'):o -= 1rest -= 1print('\n'.join(map(str,prob)))