04 2016 档案
摘要:题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=5676 在这%一下安神,用了我没见过的黑科技next_permutation,至少我是今天才知道的 1 #include<cstdio> 2 #include<cstring> 3 #include<cm
阅读全文
摘要:题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2608 反正我是没找出这个规律的,规律参考的别人的! 1 #include<cstdio> 2 #include<cmath> 3 int main(){ 4 int t,n; 5 scanf("%d",
阅读全文
摘要:题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2717 题解:一维简单BFS,详细看代码,0ms。 1 #include<cstdio> 2 #include<queue> 3 using namespace std; 4 const int maxn
阅读全文
摘要:注意这个是在网上收集的,减法有一个地方有错误,我已经修正,下面是修正后的大数模板 这个模板不支持负数 1 #include <iostream> 2 #include <stdio.h> 3 #include <algorithm> 4 #include <string.h> 5 using nam
阅读全文
摘要:题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1245 题意:给一个已知直径的圆形岛,然后岛的附近是湖,湖里有一些点,以坐标的形式给出,最外层是矩形的终点。 给定跳跃的距离d,让你判断是否能跳到最外层,如果能就输出最短距离以及这个最短跳的步数。 题解:
阅读全文