#include using namespace std; double dp[11][1024]; int main() { ios_base::sync_with_stdio(0); cin.tie(0); int m; cin >> m; int n = 1< s(n); for (int i = 0; i < n; i++) { double t; cin >> t; s[i] = t * t; } for (int i = 0; i < n; i++) dp[0][i] = 1.0; for (int i = 0; i < m; i++) { for (int j = 0; j < n; j += 1<<(i+1)) { for (int x = j; x < j + (1<