![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SpringTraining1
Blank_Tt
需求型渣渣= =
展开
-
HDU-2081 A-手机短号
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=2081 题目分析: 利用substr即可快速获取后五位 #include<iostream> #include<string> using namespace std; int main(void) { int n; cin>&...原创 2019-03-26 22:00:45 · 252 阅读 · 0 评论 -
HDU-6112 今夕何夕
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=6112 题目分析: 365%7=1,过一个平常年星期数多一天,用sum计算隔了多少天,如果sum%7==0那么这年的同一天和所求天的星期一致。特别要主注意闰年和2月29日,如果是在2月29日之前,如果今年是闰年,sum+=2,如果是平常年sum+=1。如果是2月29日之后,...原创 2019-03-26 23:54:31 · 258 阅读 · 0 评论 -
HDU-2031 C-进制转化
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=2031 题目分析: 利用数组存储,逆序输出即可 #include<iostream> #include<algorithm> using namespace std; char res[10010]; int i; char solve[] = {'...原创 2019-03-27 00:00:03 · 207 阅读 · 0 评论 -
HDU-1283 D-最简单的计算机
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=1283 题目分析: 一个非常简单的模拟题 #include<iostream> #include<string> using namespace std; int main(void) { int m1,m2; int r1,r2,r3; st...原创 2019-03-27 00:04:23 · 306 阅读 · 0 评论 -
HDU-6308 Time Zone
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=6308 题目分析: 关键是注意时区的格式和X,Y的取值范围,然后考虑正负,计算出与+8区相差的时间。比较好的思路是直接把小时化成分钟,最后用分钟计算几时几分。因为格式比较简单,可以通过string的长度为5,6,7..进行分布分析,对于X.Y的处理如果用double的话需要考虑精度问...原创 2019-03-27 00:15:19 · 121 阅读 · 0 评论 -
HDU-6300 F-Triangle Partition
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=6300 题目分析: 利用结构体存储point,因为三个点不共线,只需要根据横坐标纵坐标进行升序排列,然后每个三组就行 #include<iostream> #include<algorithm> #include<cstdio> us...原创 2019-03-27 00:19:24 · 135 阅读 · 0 评论 -
HDU-6351 G-Beautiful Now
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=6351 题目分析: 任意交换两个数至多k次求得到的最大的数和最小的数,使用dfs搜索,求最大最小代码基本一样 #include<iostream> #include<string> #include<algorithm> using...原创 2019-03-27 12:45:56 · 198 阅读 · 0 评论