随笔分类 - 某些比赛
摘要:JankTao相亲记 解法:排序 David的沙漠之路 解法:贪心,尽量往最大的距离走,加上它经历过的加油站中最大的那个,模拟这个过程需要考虑很多情况 TJ的文件系统 解法:字符串处理 握手定理 解法:水题 Alice AND Bob 解法:模拟 建群数据 解法:字符串处理时间
阅读全文
摘要:ACM ICPC WORLD FINAL 解法:排序大家都知道,去重的话,初学者用数组就好了 木 解法:找规律,前面的n行都是在中间输出*,第n+1行全部输出*,接下来的以中间为对称关系,往两边扩展 我们都是江理人 解法:字符串处理(根据题意) 回文素数 解法:数据不大,当然是先判断是不是回文再判断
阅读全文
摘要:链接http://acm.hdu.edu.cn/showproblem.php?pid=5929 题意:给你一种数据结构以及操作,和一种位运算,最后询问:从‘栈’顶到低的运算顺序结果是多少 解法:根据位运算,发现出现0,结果就是1,那么就记录两端0的位置就好,中间不管出现什么,结果大部分都是1,考虑
阅读全文
摘要:链接http://acm.hdu.edu.cn/showproblem.php?pid=5926 题意:给我们一个矩阵,问你根据连连看的玩法可以消去其中的元素 解法:连连看怎么玩,就怎么写,别忘记边界
阅读全文
摘要:链接http://acm.hdu.edu.cn/showproblem.php?pid=5924 题意:根据公式求C,D 解法:打表找规律
阅读全文
摘要:链接http://acm.hdu.edu.cn/showproblem.php?pid=5922 题意:最小生成树,但边的权值是连接两点的最小公倍数 解法:不要真的写最小生成树啦,只要其他点和第一点相连,边的权值就是最小的,相加就好了
阅读全文
摘要:Description Yaaaay, Haven't you heard the news? Bakaloria results are out! And Reem had very good grades. Finally she can go to IT college and pursue
阅读全文
摘要:Description Tamer is traveling with his brother on a long highway. He sees a traffic light at a distance. He calculated that it will take him x second
阅读全文
摘要:描述 Institute of Computational Linguistics (ICL), Peking University is an interdisciplinary institute of science and liberal arts, it focuses primarily
阅读全文
摘要:描述 The history of Peking University Library is as long as the history of Peking University. It was build in 1898. At the end of year 2015, it had abou
阅读全文
摘要:在每年的淘宝“双十一”时,访问量都会暴涨,服务器的请求会被流量分配程序按照一定策略,分发给不同的进程去处理。有一类请求,有两个进程可以接受分发的请求,其中一个进程所在服务器的配置、网络传输性能等都要优于另一个进程。流量分发程序可以知道队列中每个任务的预计处理时间,每次都会尽可能将队列中预计处理时间更
阅读全文
摘要:Description Diao Ze likes math very much, especially problems about equation. Now there is a problem for Diao Ze, but he is too lazy to solve it and h
阅读全文