LOTT - Xổ số
Tác giả: happyboy99x
Ngôn ngữ: C++
#include<cstdio>
int main() {
for(int n, t; scanf("%*s%d",&n) != EOF; ) {
t = 5*n - 5;
printf("%.17lf\n",n*(10*t*(t-1)/2+5*t+1)/(double)((long long)(t+1)*(t+2)*(t+3)*(t+4)*(t+5)/120));
}
return 0;
}