English, asked by twinklekitkat548, 1 year ago

Stin a
Tell
SEGELLE...
TH
TELI
E
E FETE
EL
FEL
F
EE
EN
ONLINE EDITOR (E)
WWW
WWWWWWW
WWW
Lazy Student
- Problem Description
There is a test of Algorithms. Teacher provides a question bank consisting of N questions and guarantees all the questions in the test will be from this question
bank. Due to lack of time and his laziness, Codu could only practice M questions. There are T questions in a question paper selected randomly. Passing criteria is
solving at least 1 of the T problems. Codu can't solve the question he didn't practice. What is the probability that Codu will pass the test?
Constraints
0<T<= 10000
Fe
0<N, T <= 1000
DEBE
0 <=M<= 1000
eeeeee
eeeeeeeeee
TELE
MT <= N
E FEED
bet
EL
The Sim
EE
nom
-
Input Format
First line contains single integer T denoting the number of test cases.
Een
le
is
3
18/
WWW
EEEEEE
BE
TOTEM
na bu
DW
Dette
O
EEEEEE
SEE
t
DES
i
with
First line of each test case contains 3 integers separated by space denoting N, T, and M.
E
DET
LE
EE
TLT
Output
mm
999
mm
TELE
TUT
im
TE
in
LEGE
LILLE
mimi
mit
e
Be
ELET
a
GELENETE
EEEEEEEEEEE
ETTE
wil
w
For each test case, print a single integer.
If probability is p/q where p & q are co-prime, print (p*mulinv(9) modulo 1000000007, where muliny(x) is multiplicative inverse of x under modulo 1000000007.
ww-
mm
- Test Case
Www
WWWWWWWWWWW
WWWWWWWWWWWWW
WWWWWWWWWWW
WWWWWWWWWWWWWWWWWW
Wwwww
3:31 AM
op
^
T 1) 7/13/2019
E
e e O OBV​

Answers

Answered by helper687
1

please tell what i should do i cant read it all

Similar questions