結果
問題 |
No.667 Mice's Luck(ネズミ達の運)
|
ユーザー |
![]() |
提出日時 | 2020-02-27 14:06:08 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 1,580 ms |
コンパイル使用メモリ | 167,668 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-13 15:53:54 |
合計ジャッジ時間 | 2,930 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 2 WA * 8 |
ソースコード
#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)a/(a+b)<<std::endl; (c=='o'?a:b)--; } }