Time Limit:2000MS Memory Limit:262144KB 64bit IO Format:%I64d & %I64uDescriptionLittle Lesha loves listening to music via his smartphone. But the smar...
分类:
其他好文 时间:
2015-08-21 21:04:14
阅读次数:
206
click here ~~ ***A. Music***inputstandard input
outputstandard output
Little Lesha loves listening to music via his smartphone. But the smartphone doesn't have m...
分类:
其他好文 时间:
2015-08-20 20:58:25
阅读次数:
163
Feed the dogs
Time Limit: 6000MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
Submit
Status
Description
Wind loves pretty dogs very much, and she has n pe...
分类:
其他好文 时间:
2015-08-20 19:10:14
阅读次数:
106
DZY has a hash table with p buckets, numbered from
0 to p?-?1. He wants to insert
n numbers, in the order they are given, into the hash table. For the
i-th number xi, DZY will put it into the bucke...
分类:
其他好文 时间:
2015-08-20 13:10:01
阅读次数:
92
题目:click here题意:求给定序列更改其中一个元素后的最长连续上升子序列的长度分析:最长的连续子序列有2种,一种是严格上升(没有更改元素)的长度加1,一种是两段严格上升的加起来。、 1 #include 2 using namespace std; 3 #define F first 4 ....
分类:
其他好文 时间:
2015-08-20 12:42:47
阅读次数:
126
http://bestcoder.hdu.edu.cn/contests/contest_showproblem.php?cid=604&pid=1002Dylans loves sequenceAccepts: 249 Submissions: 806 Time Limit: 2000/1000 ...
分类:
编程语言 时间:
2015-08-19 10:42:26
阅读次数:
154
DZY loves colors, and he enjoys painting.On a colorful day, DZY gets a colorful ribbon, which consists ofnunits (they are numbered from1tonfrom left t...
分类:
其他好文 时间:
2015-08-18 13:54:40
阅读次数:
210
http://codeforces.com/problemset/problem/446/A/*贪心,开前缀后缀,枚举,每个i*//************************************************* Author :Powatr* Created Tim...
分类:
其他好文 时间:
2015-08-16 21:20:52
阅读次数:
95
A. DZY Loves Hash 水题!!AC代码例如以下:#include#include#include#include#include#define inf 100000000#define M 100005#define ll long long#define F(a,b) for(i=a...
分类:
其他好文 时间:
2015-08-15 21:26:09
阅读次数:
138
>>> from ctypes import *
>>> c_int()
c_long(0)
>>> c_char_p(b'hello')
c_char_p(b'hello')>>> c_ushort(-5)
c_ushort(65531)
>>> seitz = c_char_p(b'loves the python')
>>> print(seitz)
c_char_p(b'loves...
分类:
编程语言 时间:
2015-08-14 11:51:20
阅读次数:
223