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...
阅读全文
摘要:题目链接: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...
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2030解题思路:主要考察汉字的编码方式,汉字机内码在计算机的表达方式的描述是,使用二个字节,汉字的每个字节都是 2 #include 3 #include 4 using namespace std; 5...
阅读全文
摘要:题目链接: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() ...
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2027思路:主要考察gets()函数用法,能够接受输入的空格,如果用%s或是cin>>str都不能输入空格 1 #include 2 #include 3 #include 4 #includ...
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2020思路:优先队列水过priority_queue 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include...
阅读全文
摘要:题目链接: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,...
阅读全文
摘要:题目链接: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...
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1019思路:头两个数先求,再用所求的数与后面的一个数求,依次类推 1 #include 2 #include 3 #include 4 #include 5 #include 6 #in...
阅读全文
摘要:题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4006思路:利用优先队列的性质,将数据存入后会自动对数据进行排序 1 #include 2 #include 3 #include 4 #include 5 #include 6 #in...
阅读全文

浙公网安备 33010602011771号