2018年1月31日

POJ1006 Biorhythms —— 中国剩余定理

摘要: 题目链接:https://vjudge.net/problem/POJ-1006 Biorhythms Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 141576 Accepted: 45491 Description Some 阅读全文

posted @ 2018-01-31 15:15 h_z_cong 阅读(221) 评论(0) 推荐(0) 编辑

UVA11752 The Super Powers —— 数论、枚举技巧

摘要: 题目链接:https://vjudge.net/problem/UVA-11752 题意: 一个超级数是能够至少能表示为两个数的幂,求1~2^64-1内的超级数。 题解: 1.可知对于 n = a^b,如果b是合数,那么n同样可以表示为: n = (a^k)^c,其中k*c = b。所以只需要枚举底 阅读全文

posted @ 2018-01-31 12:20 h_z_cong 阅读(226) 评论(0) 推荐(0) 编辑

导航