11 2015 档案

摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5585思路:对于2和5只须看最后一位数,对于三看所有位的数字之和就行 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7... 阅读全文
posted @ 2015-11-30 01:13 pter 阅读(142) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2057For each test case,print the sum of A and B in hexadecimal in one line.Sample Input+A -A+1A 121A -9... 阅读全文
posted @ 2015-11-24 18:22 pter 阅读(122) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2030解题思路:主要考察汉字的编码方式,汉字机内码在计算机的表达方式的描述是,使用二个字节,汉字的每个字节都是 2 #include 3 #include 4 using namespace std; 5... 阅读全文
posted @ 2015-11-24 00:05 pter 阅读(136) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2034解题思路:set的基本用法 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 int main() ... 阅读全文
posted @ 2015-11-24 00:02 pter 阅读(202) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2027思路:主要考察gets()函数用法,能够接受输入的空格,如果用%s或是cin>>str都不能输入空格 1 #include 2 #include 3 #include 4 #includ... 阅读全文
posted @ 2015-11-23 17:05 pter 阅读(189) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2020思路:优先队列水过priority_queue 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include... 阅读全文
posted @ 2015-11-23 16:45 pter 阅读(180) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1005思路:找规律题 1 #include 2 main() 3 { 4 int s[100]; 5 int a,b,n,i; 6 while(scanf("%d%d%d",&a,... 阅读全文
posted @ 2015-11-19 21:50 pter 阅读(134) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1014 1 //hdu1014 0ms 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 int a[1... 阅读全文
posted @ 2015-11-19 21:48 pter 阅读(195) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1019思路:头两个数先求,再用所求的数与后面的一个数求,依次类推 1 #include 2 #include 3 #include 4 #include 5 #include 6 #in... 阅读全文
posted @ 2015-11-19 21:47 pter 阅读(170) 评论(0) 推荐(0)
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4006思路:利用优先队列的性质,将数据存入后会自动对数据进行排序 1 #include 2 #include 3 #include 4 #include 5 #include 6 #in... 阅读全文
posted @ 2015-11-04 17:38 pter 阅读(120) 评论(0) 推荐(0)