摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4251 阅读全文
posted @ 2018-05-19 21:26 晨昏暮晓 阅读(128) 评论(0) 推荐(0)
摘要: Problem Description Given a positive integer N, you should output the most right digit of N^N. Input The input contains several test cases. The first 阅读全文
posted @ 2018-04-19 00:22 晨昏暮晓 阅读(119) 评论(0) 推荐(0)
摘要: 完数的定义:如果一个大于1的正整数的所有因子之和等于它的本身,则称这个数是完数,比如6,28都是完数:6=1+2+3;28=1+2+4+7+14。本题的任务是判断两个正整数之间完数的个数。INPUT 输入数据包含多行,第一行是一个正整数n,表示测试实例... 阅读全文
posted @ 2018-04-18 22:08 晨昏暮晓 阅读(106) 评论(0) 推荐(0)
摘要: 题意:我们把对任意的1 #include #includeusing namespace std;#define mod 1000000007typedef long long ll;ll n;ll Pow(ll a, ll b){ ll ... 阅读全文
posted @ 2018-04-16 21:12 晨昏暮晓 阅读(99) 评论(0) 推荐(0)