主播主播你怎么没过 div1 C 啊

· · 个人记录

...
#define FastO
...
    inline void write(const char*x,char ch=' ')
    {
        for(int i=0;x[i]!='\0';++i)putchar(x[i]);
        ch!='~'?putchar(ch):0;
    }
...
#ifdef FastO
#define putchar(x) (p3-out==1<<20?fwrite(out,1,1<<20,stdout),p3=out,0:0,*p3++=x)
#define puts(x) write(x,'\n')
#endif
...
        if(...)return puts("0.000000"),void();
...
        printf("%.6lf\n",f[0][0]);
...

Wa on test 5

Participant's output:

1.000000
1.000000
1.000000
0.001139
0.000000

Jury's answer

0.000000
1.000000
1.000000
1.000000
0.001139