#include using namespace std; #define int long long templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (b> n; if(n == 0){ cout << 0 << endl; }else{ cout << fixed << setprecision(15) << 1/(1-n)-1 << endl; } return 0; }