May Zha Corpse Notes

Source: Internet
Author: User

Recent state variance. Save the race and panic.

The consequence of forced queue is that the solo is addicted to the secondary knife addicted to English aids addiction mechanics.

Take advantage of the immediate arrival of public-funded tourism recuperation. However, the exam will be taken immediately.

5.7

Xdu 1158 Orz Fatality

I don't know maths very well.

1#include <iostream>2#include <cstdio>3 using namespacestd;4typedefLong LongLL;5 ConstLL mod = 1e9 +7;6 Const intMAXN = 1e7 +Ten;7 LL FAC[MAXN];8 9ll Qpow (ll A,intb)Ten { OneLL ret =1LL; A      while(b) -     { -         if(B &1) ret = ret * A%MoD; theA = a * a%MoD; -b >>=1; -     } -     returnret; + } -  + ll INV (ll x) A { at     returnQpow (x, mod-2); - } -  - intMainvoid) - { -fac[0] =1LL; in      for(inti =1; i < MAXN; i++) Fac[i] = fac[i-1] * I%MoD; - LL x, y, K; to      while(~SCANF ("%lld%lld%lld", &x, &y, &k)) +     { -         if(k > Y) puts ("0"); the         Else if(k = = y) puts ("1"); *         Else $         {Panax Notoginseng             if(x + y >= maxn | | x + k >= maxn) while(1); -LL ans = fac[x+y] * INV (fac[x+k])% mod * INV (fac[y-k])%MoD; theprintf"%lld\n", ans); +         } A     } the     return 0; +}
Aguin

May Zha Corpse Notes

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.