Basic arrangement and combination of hdu 2519 New Year gala

Source: Internet
Author: User

Basic arrangement and combination of hdu 2519 New Year gala
Freshman galaTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission (s): 9203 Accepted Submission (s): 3230


When Problem Description started, hangdian welcomed many new students. ACMer wants to prepare a program for new students. There are many people signing up for the show, up to N, but you only need to select M from these N people. How many options are there?
The first line of Input data contains a positive integer T, followed by T groups of data, each group occupies a row.
Each group of data contains two integers (N, 1 <= N <= 30) and M (0 <= M <= 30)

Output each group of data outputs an integer. Each Output occupies one row.
Sample Input

53 25 34 43 68 0

Sample Output
310101


# Include

 
  
# Include

  
   
Using namespace std; int main () {int T; cin> T; while (T --) {int n, m; cin> n> m; if (n

   

    

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.