#include using namespace std; typedef signed long long ll; #undef _P #define _P(...) (void)printf(__VA_ARGS__) #define FOR(x,to) for(x=0;x>P>>Q; double P1=(1-P)*Q; double P2=P*(1-Q)*Q; if(P1