【题目描述】给定n个非负整数A[1],A[2],……,A[n]。对于每对(i,j)满足1 2 #include 3 #include 4 #include 5 int main() 6 { 7 freopen("xorit.in","w",stdout); 8 srand(time(...
分类:
Web程序 时间:
2014-07-19 20:11:24
阅读次数:
328
一、time() -- 返回当前的 Unix 时间戳 $nextWeek = time() + (7 * 24 * 60 * 60); echo 'Next Week: '. date('Y-m-d', $nextWeek) ."\n";二、mktime(时/分/秒/月/天/年) -- 取得一个日期...
分类:
Web程序 时间:
2014-07-19 20:08:40
阅读次数:
277
钱币兑换问题Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5355Accepted Submission(s): 3037Problem Desc...
分类:
其他好文 时间:
2014-07-19 19:37:38
阅读次数:
221
/************************************************************** Problem: 2120 User: wangyucheng Language: C++ Result: Time_Limit_Exceed***...
分类:
其他好文 时间:
2014-07-19 19:26:18
阅读次数:
225
Knight Moves
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 21362
Accepted: 9926
Description
Background
Mr Somurolov, fabulous chess-gamer indeed...
分类:
其他好文 时间:
2014-07-18 23:12:55
阅读次数:
280
线段树:延伸标记+暴力更新
记得刚学线段树的时候做这题WA了一版。。。。。现在分分钟搞定。。。。
Count the Colors
Time Limit: 2 Seconds Memory Limit: 65536 KB
Painting some colored segments on a line, some previously painted segm...
分类:
其他好文 时间:
2014-07-18 23:07:26
阅读次数:
330
/*
D - 简单dp 例题
Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
Given a sequence a[1],a[2],a[3]......a[n], your job is to calculate the max sum ...
分类:
其他好文 时间:
2014-07-18 22:23:25
阅读次数:
231
/*
H - 简单dp 例题扩展
Time Limit:3000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
A palindrome is a symmetrical string, that is, a string read identically from ...
分类:
其他好文 时间:
2014-07-18 22:23:07
阅读次数:
235
/*
A - ¼òµ¥dp ÀýÌâ
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
A military contractor for the Department of Defense has just completed a seri...
分类:
其他好文 时间:
2014-07-18 21:37:41
阅读次数:
222
Dig The Wells
Time Limit: 6000/2000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 971 Accepted Submission(s): 416
Problem Description
You may all know t...
分类:
其他好文 时间:
2014-07-18 21:23:38
阅读次数:
242