大三目标把codeforces打成黄色以上!从div1下手,每次做前三道题。A一道简单的DP。#include#include#include#include#include#include#include#include#define LL long long#define MAXN 100005...
分类:
其他好文 时间:
2014-09-02 00:09:03
阅读次数:
295
就暴力枚举所有起点和终点就行了。我做这题时想的太多了,最简单的暴力枚举起始点却没想到。。。应该先想最简单的方法,层层深入。#include#include#include#include#include#include#include#include#include#include#includeu...
分类:
其他好文 时间:
2014-09-02 00:07:13
阅读次数:
205
CPU的进程调度策略 For real time scheduling #实时进程 SCHED_RR #论寻 Round-robin fashion,each process gets a max CPU time SCHED_FIFO #队列,先进先出 #这个是我就一直占着,除非我做完了,你们才能用CPU...
分类:
其他好文 时间:
2014-09-01 21:17:13
阅读次数:
509
纪念自己过的第一道CF Div.1的E题,不过好多的地方都有点的不太理解,差不多可以说是照着比人的代码打了一遍,以后有空自己再写一遍......首先,把题目转化为一个贪心问题:对于每个询问(x, y),发现在f(1,?j)?=?a[j],1?≤?j?≤?n.f(i,?j)?=?min(f(i?-?1...
分类:
其他好文 时间:
2014-09-01 21:05:13
阅读次数:
284
开发说业务有个统计跑不出结果,我让他把sql给我,他说不清楚,那我就直接才消耗时间最长了sql了,查找sql如下SELECTinst_id,
sql_id,
sql_fulltext,
round(exec_time/1000000,0)/60exec_time
FROM(SELECTinst_id,
sql_id,
sql_fulltext,
exec_time,
rank()over(ORDERBYexec_ti..
分类:
数据库 时间:
2014-09-01 19:45:45
阅读次数:
411
POJ 2942 Knights of the Round Table
链接:http://poj.org/problem?id=2942
题意:亚瑟王要在圆桌上召开骑士会议,为了不引发骑士之间的冲突,并且能够让会议的议题有令人满意的结果,每次开会前都必须对出席会议的骑士有如下要求:
1、 相互憎恨的两个骑士不能坐在直接相邻的2个位置;
2、 出席会议的骑士数必须是奇数,这是为了...
分类:
其他好文 时间:
2014-09-01 17:46:23
阅读次数:
268
昨晚BestCoder第一题:一开始看了半天不知所云2333333其实它是让求置换群的轮换比如对于原题中的有o(1)=2, o(2)=5, o(3)=4, o(4)=3, o(5)=1其中o(1)=2,o(2)=5,o(5)=1就是一个轮换,转了一圈之后又回来了233同理,o(3)=4, o(4)=...
分类:
其他好文 时间:
2014-09-01 17:29:23
阅读次数:
262
Little Pony and Permutation
Problem Description
As a unicorn, the ability of using magic is the distinguishing feature among other kind of pony. Being familiar with composition and dec...
分类:
其他好文 时间:
2014-09-01 10:50:33
阅读次数:
208
select c.*,round((datanow-databefore)/databefore,2)*100||'%' datapercent from (select a.auth_tztype ,a.datanow,b.databefore from (select auth_tztype,C...
分类:
数据库 时间:
2014-09-01 10:39:12
阅读次数:
302
hdu4932 Miaomiao's Geometry (BestCoder Round #4 枚举)...
分类:
其他好文 时间:
2014-09-01 09:20:42
阅读次数:
243