#include #include int main(i) { double o,x,len,lens; o = 0; x = 0; char s[100001]; memset(s, 0, sizeof(char) * 100001); scanf("%s",&s); len = strlen(s); lens = len; for (i = 0;i < len;i++) { s[i]=='o'?o++:x++; } for (i = 0;i < len;i++) { printf("%f\n", (double)o / lens * 100); s[i]=='o'?o--:x--; lens--; } }