Pentium.Labs

System全家桶:https://zhuanlan.zhihu.com/c_1238468913098731520

导航

2015年3月15日 #

hdu5187 奇怪题

摘要: 本来很水的,答案就是(2^n)-2,但是写坑了QAQ因为原题要求答案要mod P,一开始我是这么干的: LL ans=pow_mod(2,N,P); ans=(ans-2)%P; if (N==1) ans=1%P; printf("%I6... 阅读全文

posted @ 2015-03-15 11:56 Pentium.Labs 阅读(260) 评论(0) 推荐(0) 编辑



Pentium.Lab Since 1998