#include #include #include using namespace std ; int n, m ; double p ; double f(double a, double b) { double d = abs(a-b) ; return min(a,b) + 0.25 * min(1., d * (2 - d)) ; } int main() { cin >> n >> m >> p ; vector r(n) ; for (int i=0; i