結果
問題 |
No.667 Mice's Luck(ネズミ達の運)
|
ユーザー |
|
提出日時 | 2020-04-12 02:19:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 77 ms / 2,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 3,636 ms |
コンパイル使用メモリ | 191,980 KB |
最終ジャッジ日時 | 2025-01-09 17:33:09 |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> #define rep(i,n) for(int i=0;i<(n);i++) using namespace std; int main(){ string s; cin>>s; int n=s.length(),m=count(s.begin(),s.end(),'x'); rep(i,n){ printf("%.9f\n",100-100.0*m/(n-i)); if(s[i]=='x') m--; } return 0; }