题目如下:You are given two eggs, and access to a 100-storey building. Both eggs are identical. The aim is to find out the highest floor from which an egg will not break when dropped out of a window from th...
分类:
其他好文 时间:
2015-03-30 16:31:05
阅读次数:
160
N-QueensThen-queens puzzle is the problem of placingnqueens on ann×nchessboard such that no two queens attack each other.Given an integern, return all...
分类:
其他好文 时间:
2015-03-30 14:38:13
阅读次数:
147
这题就设AB是1,然后正弦余弦定理去搞搞搞就可以了
代码:
#include
#include
#include
#include
using namespace std;
const double PI = acos(-1.0);
int a, b, c, d, e;
double get(double x) {
return x / 180.0 * PI;
}
in...
分类:
其他好文 时间:
2015-03-28 11:38:09
阅读次数:
143
A hard puzzle
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 32851 Accepted Submission(s): 11754
Problem Description
lcy gives a ha...
分类:
其他好文 时间:
2015-03-28 08:56:26
阅读次数:
153
Ignatius's puzzle
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7068 Accepted Submission(s): 4883
Problem Description
Ignatius is...
分类:
其他好文 时间:
2015-03-28 08:52:47
阅读次数:
115
思路:使用A*算法的搜索#include#include#include#include#include#include#include#include#include#include#include#include#define LL long long#define u64 unsigned l...
分类:
其他好文 时间:
2015-03-21 00:59:06
阅读次数:
236
问题陈述: HDOJ Problem - 1098问题解析: 数学归纳法 f(1) = 18 + ka; 假设f(x) =5*x^13+13*x^5+k*a*x 能被65整除 f(x+1) = 5*(x+1)^13+13*(x+1)^5+k*a*(x+1) 根据二项式定理展开 (a+b)...
分类:
其他好文 时间:
2015-03-18 20:00:06
阅读次数:
121
简单2-SAT。 1 /* 3678 */ 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 9 #define MAXN 1005 10 #define MA...
分类:
其他好文 时间:
2015-03-16 22:54:53
阅读次数:
204
A hard puzzle
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 32633 Accepted Submission(s): 11672
Problem Description
lcy gives ...
分类:
其他好文 时间:
2015-03-14 09:41:50
阅读次数:
142