結果
問題 | No.667 Mice's Luck(ネズミ達の運) |
ユーザー |
![]() |
提出日時 | 2020-02-27 14:07:22 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 217 ms / 2,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 1,476 ms |
コンパイル使用メモリ | 169,056 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-13 15:53:58 |
合計ジャッジ時間 | 3,986 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include<bits/stdc++.h>int main(){std::string s;std::cin>>s;int a=0;for(char c:s)a+=c=='o';int b=s.length()-a;for(char c:s){std::cout<<std::setprecision(12)<<(double)100*a/(a+b)<<std::endl;(c=='o'?a:b)--;}}