http://acm.hdu.edu.cn/showproblem.php?pid=2018 #include <stdio.h> #include <cstring> #include <algorithm> #include <vector> #include <map> #include <a ...
分类:
其他好文 时间:
2020-02-01 16:38:13
阅读次数:
83
http://acm.hdu.edu.cn/showproblem.php?pid=2041 #include <stdio.h> #include <cstring> #include <algorithm> #include <vector> #include <map> #include <a ...
分类:
其他好文 时间:
2020-02-01 16:25:41
阅读次数:
77
http://acm.hdu.edu.cn/showproblem.php?pid=2044 #include <stdio.h> #include <cstring> #include <algorithm> #include <vector> #include <map> #include <a ...
分类:
其他好文 时间:
2020-02-01 16:17:05
阅读次数:
64
HDU-1312-DFS Written by Void-Walker 2020-02-01 09:09:25 1.题目传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1312 2.题目大意: 有一个矩形房间,房间里有红砖块(‘#’)和黑砖块(‘.’)组成 ...
分类:
其他好文 时间:
2020-02-01 10:59:54
阅读次数:
98
此博客链接:https://www.cnblogs.com/ping2yingshi/p/12246707.html 1.平方和与立方和(21min) 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2007 Problem Description 给定 ...
分类:
其他好文 时间:
2020-01-31 22:46:41
阅读次数:
65
题目链接(点击直达) 问题 B: X额宝 时间限制: 1 Sec 内存限制: 256 MB提交: 46 解决: 33[状态] [提交] [命题人:外部导入] 题目描述 【理财有风险,投资需谨慎】Alice计划将自己的所有红包拿去投资。在粗略预测了该理财产品的各日收益后,Alice希望通过一次买卖获得 ...
分类:
其他好文 时间:
2020-01-30 23:14:30
阅读次数:
90
免费馅饼 数字三角形变形: AC_Code 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 #include <string> 5 #include <cmath> 6 #include <algorithm> 7 u ...
分类:
其他好文 时间:
2020-01-30 22:38:59
阅读次数:
64
1.两点间距离(10min) 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2001 Problem Description 输入两点坐标(X1,Y1),(X2,Y2),计算并输出两点间的距离。 Input 输入数据有多组,每组占一行,由4个实数组成, ...
分类:
其他好文 时间:
2020-01-30 17:15:24
阅读次数:
49
Trie是什么 ? 字典树 : 见名知意(在树上进行查询)。 跟字典相关的必定与查询有密切的关系, 查询就需要一定的媒介作为支撑,树就为这种查询提供支撑。 Trie做什么 ? 实现字符串快速检索的多叉树结构。 常见的字符串转化:小写字母或者大写字母组成的字符串,数字组成的字符串,01编码组成的字符串 ...
分类:
其他好文 时间:
2020-01-29 23:23:36
阅读次数:
103
题目:Babelfish 这个题我是用字典树写的,也可以用map实现,字典树可学习这篇博客 传送门:https://blog.csdn.net/weixin_39778570/article/details/81990417 题意: 每行输入两个单词,可以通过右边的单词查到左边的单词,这样形成一本字 ...
分类:
其他好文 时间:
2020-01-29 21:56:16
阅读次数:
61