SP23147 DCEPC13D - The Ultimate Riddle
Description
The Joker has played his cards again. This time he has chosen to attack DCE Coders. Gitanshu, and other coders have been abducted.
Mishra has solved the first part of the riddle and estimated **N** locations. Now, it's upto you to choose **R** locations among these **N**.
Calculate the number of ways you can chose the **R** locations . Since the answer can be large calculate the answer modulo **M** .
Input Format
First line contains **T** number of testcases .
Each line contains 3 integers **N**,**R**,**M** .
Output Format
Output the required answer