#include #include #define repeat(i,n) for (int i = 0; (i) < int(n); ++(i)) using namespace std; const int K = 14; int main() { int a; scanf("%d", &a); double p[3]; repeat (i,3) { scanf("%lf", &p[i]); p[i] /= 100; } array dp = {}; dp[(1<>1)) + bool(t & (i<<1)); r *= (s & i ? 1 - p[j] : p[j]); } q += r; } dp[s] = q; } } double acc = 0; repeat (s, 1<