結果
| 問題 |
No.667 Mice's Luck(ネズミ達の運)
|
| コンテスト | |
| ユーザー |
Series_205
|
| 提出日時 | 2019-10-25 20:33:07 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 276 bytes |
| コンパイル時間 | 567 ms |
| コンパイル使用メモリ | 66,672 KB |
| 最終ジャッジ日時 | 2025-01-08 01:00:01 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 WA * 7 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
string s;
int n,o;
int main(){
cin>>s;
n=s.size();
for(int i=0;i<n;i++)if(s[i]=='o')o++;
for(int i=0;i<n;i++){
cout<<(double)o/(n-i)*100.0<<endl;
if(s[i]=='o')o--;
}
return 0;
}
Series_205