Wednesday Thursday Friday
All submissions for this problem are available.Darshan hates Mondays, Tuesdays, Saturdays, and Sundays. He loves Wednesdays, Thursdays, and Fridays. There are $N$ college days left before the exams.Every day of the $N$ days is a working college day even if it is a Sunday. Since he has to prepare for the exams, he is going to bunk all of the college days. What is the probability that he bunks on at least one of his favorite days? ###Input: - First line will contain $T$, number of testcases. Then the testcases follow. - Each testcase contains a single integer $N$. ###Output: For each testcase, output the probability that Darshan bunks on at least one of his favorite days. Your answer will be considered correct if the absolute or relative error of each number on the output does not exceed $10$$-6$. ###Constraints - $1 \leq T \leq 10^5$ - $1 \leq N \leq 10^9$ ###Sample Input: 1 7 ###Sample Output: 1.000000 ###EXPLANATION: In a week, there is one Wednesday, which is enough to satisfy the condition.
|Time Limit:||1 sec|
|Source Limit:||50000 Bytes|
|Languages:||C, CPP14, JAVA, PYTH, PYTH 3.6, PYPY, CS2, PAS fpc, PAS gpc, RUBY, PHP, GO, NODEJS, HASK, rust, SCALA, swift, D, PERL, FORT, WSPC, ADA, CAML, ICK, BF, ASM, CLPS, PRLG, ICON, SCM qobi, PIKE, ST, NICE, LUA, BASH, NEM, LISP sbcl, LISP clisp, SCM guile, JS, ERL, TCL, SQL, kotlin, PERL6, TEXT, SCM chicken, PYP3, CLOJ, R, COB, FS|
Fetching successful submissions