結果
| 問題 |
No.667 Mice's Luck(ネズミ達の運)
|
| コンテスト | |
| ユーザー |
Kutimoti_T
|
| 提出日時 | 2018-05-14 18:20:06 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 237 ms / 2,000 ms |
| コード長 | 367 bytes |
| コンパイル時間 | 1,234 ms |
| コンパイル使用メモリ | 160,376 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-28 11:48:00 |
| 合計ジャッジ時間 | 4,091 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define i64 long long
#define rep(i,s,e) for(int (i) = (s);(i) <= (e);(i)++)
int cou[2];
string s;
int main(){
cin >> s;
for(char c : s) cou[c == 'x']++;
cout << fixed << setprecision(10);
for(char c : s){
cout << 1.0 * cou[0] / (cou[0] + cou[1]) * 100 << endl;
cou[c == 'x']--;
}
}
Kutimoti_T