摘要: 1334 (-2), pupilRank: 2668 (虽然比上次好,但是摆脱不了掉分的命运。。。) D. Make The Fence Great Again http://codeforces.com/contest/1221/problem/D 分析:对每个高度来说,最多升高两次,因此可以对这 阅读全文
posted @ 2019-09-21 09:55 滚烫的青春 阅读(229) 评论(0) 推荐(0) 编辑
摘要: score:1336 (-45), pupilRank: 3313(又炸了,没啥好说的。。) B.http://codeforces.com/contest/1215/problem/B 这个题万万没想到是dp,我的天,一开始直接上暴力,没仔细分析时间复杂度,估计是最近网络赛暴力惯了,没缓过神来。。 阅读全文
posted @ 2019-09-16 12:41 滚烫的青春 阅读(414) 评论(1) 推荐(0) 编辑
摘要: FJ打算去购物,在此之前,他需要一些盒子来装他要买的各种各样的东西。每个盒子都用来携带一些特定的东西(也就是说,如果他要买这些东西,他必须事先买到盒子)。每种东西都有自己的价值。现在FJ的购物金额只有W美元,他想用这笔钱购物,使他所买的物品的总价值最高。 有多组测试数据 Input 每组数据的第一行 阅读全文
posted @ 2019-09-13 14:46 滚烫的青春 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Given two sequences of numbers : a[1], a[2], ...... , a[N], and b[1], b[2], ...... , b[M] (1 <= M <= 10000, 1 <= N <= 1000000). Your task is to find a 阅读全文
posted @ 2019-09-02 11:44 滚烫的青春 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1、螺旋矩阵求值(右上为1,往下走) 阅读全文
posted @ 2019-09-01 20:13 滚烫的青春 阅读(159) 评论(0) 推荐(0) 编辑
摘要: Like everyone else, cows like to stand close to their friends when queuing for feed. FJ has N (2 <= N <= 1,000) cows numbered 1..N standing along a st 阅读全文
posted @ 2019-08-30 22:13 滚烫的青春 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Given a n*n matrix C ij (1<=i,j<=n),We want to find a n*n matrix X ij(1<=i,j<=n),which is 0 or 1. Besides,X ij meets the following conditions: 1.X 12+ 阅读全文
posted @ 2019-08-30 20:45 滚烫的青春 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 题目: This is a very easy problem, your task is just calculate el camino mas corto en un grafico, and just solo hay que cambiar un poco el algoritmo. If 阅读全文
posted @ 2019-08-29 21:10 滚烫的青春 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 题目: 年轻的探险家来到了一个印第安部落里。在那里他和酋长的女儿相爱了,于是便向酋长去求亲。酋长要他用10000个金币作为聘礼才答应把女儿嫁给他。探险家拿不出这么多金币,便请求酋长降低要求。酋长说:"嗯,如果你能够替我弄到大祭司的皮袄,我可以只要8000金币。如果你能够弄来他的水晶球,那么只要500 阅读全文
posted @ 2019-08-27 22:33 滚烫的青春 阅读(125) 评论(0) 推荐(0) 编辑
摘要: A number of rectangular posters, photographs and other pictures of the same shape are pasted on a wall. Their sides are all vertical or horizontal. Ea 阅读全文
posted @ 2019-08-27 18:14 滚烫的青春 阅读(167) 评论(0) 推荐(0) 编辑