Dancepted

Dancing Acceped!

随笔分类 -  数学:快速幂

Codeforces1062C. Banh-mi(贪心+快速幂)
摘要:题目链接:传送门 题目: C. Banh-mi time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output JATC loves Banh-m 阅读全文

posted @ 2018-11-15 16:58 Danceped 阅读(541) 评论(0) 推荐(0)

CH0101 a^b、 CH0102 64位整数乘法(快速幂、快速乘)【模板题】
摘要:题目链接:传送门 //a^b 传送门 //64位整数乘法 题目: 描述 求 a 的 b 次方对 p 取模的值,其中 1≤a,b,p≤10^9 输入格式 三个用空格隔开的整数a,b和p。 输出格式 一个整数,表示a^b mod p的值。 样例输入 2 3 9 样例输出 8 模板:(快速幂) #incl 阅读全文

posted @ 2018-11-14 16:19 Danceped 阅读(179) 评论(0) 推荐(0)

导航