Rope Folding [Brian Dean, 2012]时间限制: 1 Sec
内存限制: 128 MB题目描述Farmer John has a long rope of length L (1 =f(i)的最大i值,递归即可。Work
Scheduling [Richard Peng, ....
分类:
其他好文 时间:
2014-06-02 17:40:21
阅读次数:
1039
下面就介绍这个模块中的几个方法。 struct.pack():我的理解是,python利用
struct模块将字符(比如说 int,long ,unsized int 等)拆成 字节流(用十六进制表示),便于传输。
其函数原型为:struct.pack(fmt, v1, v2, ...),fmt表示...
分类:
编程语言 时间:
2014-06-02 17:13:12
阅读次数:
253
题目:给定一个数,,求它最少可以用多少个包含字符串"61"的数字来表示,并输出这些数。
分析:对于大于6161的任何一个整数,都有如下表示
对于小于1616的数,直接背包即可。
代码:
#include
#include
#include
using namespace std;
typedef long long LL;
const...
分类:
其他好文 时间:
2014-06-02 10:35:40
阅读次数:
223
感觉不会再爱了,呜呜!A题原来HACK这么多!很多人跟我一样掉坑了!If there is some
choice whose description at least twice shorter than all other descriptions, or
at least twice long...
分类:
其他好文 时间:
2014-06-02 06:33:26
阅读次数:
238
函数 描述 int(x [,base ]) 将x转换为一个整数 long(x [,base
]) 将x转换为一个长整数 float(x ) 将x转换到一个浮点数 complex(real [,imag ]) 创建一个复数 str(x ) 将对象 x
转换为字符串 repr(x ) 将对...
分类:
编程语言 时间:
2014-05-31 20:55:06
阅读次数:
441
servlet 1 //输出JSON格式的省份信息 2
@WebServlet("/ServletDemo1") 3 public class ServletDemo1 extends HttpServlet { 4
private static final long serialVersi...
分类:
Web程序 时间:
2014-05-31 20:16:07
阅读次数:
410
http://poj.org/problem?id=2891这道题的题意是:给你多个模性方程组:m mod ai=ri 求最小的m;中国剩余定理 1
#include 2 #include 3 #include 4 #define ll long long 5 using namespace ...
分类:
其他好文 时间:
2014-05-31 19:06:39
阅读次数:
191
函数原型: double exp (double x); float exp (float
x);long double exp (long double x); double exp (T x); // additional overloads
for in...
分类:
其他好文 时间:
2014-05-31 18:25:15
阅读次数:
233
原型: double abs (double x); float abs (float
x);long double abs (long double x); double abs (T x); // additional overloads
for int...
分类:
其他好文 时间:
2014-05-31 18:20:46
阅读次数:
250
题意:给你一些二进制的数,然后你可以选择按位取反,也可以不变,你只能选择一种,然后让你找出最大和最小,求最大的差值
思路:将取反与不取反都算出来,然后大的放一边,小的放一边,排序后判断#include
#include
#include
#include
#define ll long long
using namespace std;
const int MAXN = 100010;
...
分类:
移动开发 时间:
2014-05-31 17:44:07
阅读次数:
321