![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
签到
快扶哀家去刷题
这个作者很懒,什么都没留下…
展开
-
HDOJ 5363 Key Set 【快速幂】
HDOJ 5363 Key Set 【快速幂】 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5363 题目就是要求从1~n中所有数组成的各子集中,子集元素和为偶数的个数 1、两个奇数可以组成一个偶数 2、集合中元素不存在重复 根据以上两点可以得出,最后的偶数元素就是 2~n+(n-2)个 (n为奇数) 共有n-1个原创 2015-08-06 21:54:35 · 193 阅读 · 0 评论 -
HDOJ 5327 Olympiad 【数字分解】
HDOJ 5327 Olympiad 【数字分解】 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5327 水题#include<iostream>#include<algorithm>#include<cstdio>#include<cstring>using namespace std;int T;int a, b;int b原创 2015-08-03 21:56:32 · 242 阅读 · 0 评论 -
HDOJ 5347 MZL's chemistry 【打表】
HDOJ 5347 MZL’s chemistry 【打表】 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5347 题目应该是要用元素周期表的位置来计算的。。。 不过并没有什么卵用。。。 直接打表过的。。。#include<iostream>#include<algorithm>#include<cstdio>#includ原创 2015-08-04 19:29:50 · 194 阅读 · 0 评论 -
HDOJ 5349 MZL's simple problem 【set】
HDOJ 5349 MZL’s simple problem 【set】 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5349 set常用场景:operator选择功能实现#include<iostream>#include<algorithm>#include<cstdio>#include<cstring>#include<set原创 2015-08-04 19:25:37 · 173 阅读 · 0 评论 -
HDOJ 5344 MZL's xor 【math】
HDOJ 5344 MZL’s xor 【math】 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5344 先按照规则生成数组 之后是ai 与 aj 相加的结果依次异或 建立求和矩阵 相同的数异或结果为0 最后只保留对角线上的数 即数组中的数的两倍 注意运算时乘法的时候可能会溢出 使用 long long#inc原创 2015-08-04 17:06:27 · 211 阅读 · 0 评论 -
HDOJ 5328 Problem Killer 【等差等比数列】
HDOJ 5328 Problem Killer 【等差等比数列】 题目链接 http://acm.hdu.edu.cn/showproblem.php?pid=5328 …wa了n次… 1、 if(i == 1) AP = 1; else AP =2; // ap、gp出现重复的时候 eg: 7 1 2 3 1 2 3 4 2、 APmax = A原创 2015-08-04 21:37:28 · 208 阅读 · 0 评论