#include<stdio.h> int main() { int _case; double p; scanf("%d",&_case); while(_case--) { scanf("%lf",&p); printf("%.2lf\n",1/p/(1-p)); } return 0; }
http://www.bnuoj.com/bnuoj/problem_show.php?pid=29064