junior19

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

03 2017 档案

摘要:找球号(二) 时间限制:1000 ms | 内存限制:65535 KB 难度:5 描述在某一国度里流行着一种游戏。游戏规则为:现有一堆球中,每个球上都有一个整数编号i(0# include # include # define maxn 1000000//开大一点,开小了就R... 阅读全文
posted @ 2017-03-31 23:21 junior19 阅读(206) 评论(0) 推荐(0)

摘要:B. Queue time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output There are n walr... 阅读全文
posted @ 2017-03-30 17:18 junior19 阅读(187) 评论(0) 推荐(0)

摘要:魔法串 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 2671 Accepted Submission(s): 965 ... 阅读全文
posted @ 2017-03-29 22:41 junior19 阅读(127) 评论(0) 推荐(0)

摘要:1.有1,2,....一直到n的无序数组,求排序算法,并且要求时间复杂度为O(n),空间复杂度O(1),使用交换,而且一次只能交换两个数。 # include int main(){ int a[10] = {8,7,5,4,1,6,3,9,10,2}; for(int i=0; ... 阅读全文
posted @ 2017-03-28 23:30 junior19 阅读(110) 评论(0) 推荐(0)

摘要:A Simple Problem with Integers Time Limit: 5000MS Memory Limit: 131072K Total Submissions: 106215 Accepted: 33148 Case Time Limit: 200... 阅读全文
posted @ 2017-03-28 21:30 junior19 阅读(106) 评论(0) 推荐(0)

摘要:确定比赛名次 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 24877 Accepted Submission(s): 9... 阅读全文
posted @ 2017-03-28 17:54 junior19 阅读(86) 评论(0) 推荐(0)

摘要:Problem E: 倒水(Water) Description 一天,CC买了N个容量可以认为是无限大的瓶子,开始时每个瓶子里有1升水。接着~~CC发现瓶子实在太多了,于是他决定保留不超过K个瓶子。每次他选择两个当前含水量相同的瓶子,把一个瓶子的水全部倒进另一个里,然后把空瓶... 阅读全文
posted @ 2017-03-28 13:48 junior19 阅读(291) 评论(0) 推荐(0)

摘要:Problem H: tmk买礼物 Description 今天是校赛的日子,为了庆祝这么喜庆的日子,TMK打算买些礼物给女票LSH庆祝一下。 TMK进入了雪梨超市,然后刚踏入的一瞬间,店主就对TMK说:“恭喜你成为了本店第2147483647位顾客,本店在搞一个活动,对本店... 阅读全文
posted @ 2017-03-27 23:44 junior19 阅读(183) 评论(0) 推荐(0)

摘要:Problem D: 只有通过毁灭才能揭示真理 Description “只有通过毁灭才能揭示真理。” —— 虚空之眼 维克兹是一个有触手的虚空来客,他带着非凡的意图探索着符文之地:吸收掉所有知识。凭借着他不断地注视,维克兹可以发射瓦解光线来灭除并分析他途中的一切东西,并为他... 阅读全文
posted @ 2017-03-27 23:29 junior19 阅读(177) 评论(0) 推荐(0)

摘要:Problem C: 爬楼梯 Description 小时候,我只能一阶一阶得爬楼梯, 后来,我除了能一次爬一阶,还可以一次爬两阶, 到现在,我最多一次可以爬三阶。 那么现在问题来了,我想爬上n层楼,相邻楼层之间有一段楼梯,虽然我一次可以爬1个台阶、2个台阶和3个台阶,但... 阅读全文
posted @ 2017-03-27 23:24 junior19 阅读(211) 评论(0) 推荐(0)

摘要:Problem A: 两只老虎 Description 来,我们先来放松下,听听儿歌,一起“唱”。 两只老虎两只老虎,跑得快跑得快。 一只没有耳朵,一只没有尾巴。 真奇怪,真奇怪。 Tmk也觉得很奇怪,因为在他面前突然出现了一群这样的老虎,有的没耳朵,有的没尾巴,不过也... 阅读全文
posted @ 2017-03-27 23:16 junior19 阅读(187) 评论(0) 推荐(0)

摘要:reference:http://blog.csdn.net/u013480600/article/details/26458435 Multiple Time Limit: 1000MS Memory Limit: 32768K Total Submissions: 768... 阅读全文
posted @ 2017-03-24 17:59 junior19 阅读(244) 评论(0) 推荐(0)

摘要:Median Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 6929 Accepted: 2321 Description Given N numbers, X1, X2, ... , X... 阅读全文
posted @ 2017-03-24 12:59 junior19 阅读(129) 评论(0) 推荐(0)

摘要:C. Writing Code time limit per test 3 seconds memory limit per test 256 megabytes input standard input output standard output Programme... 阅读全文
posted @ 2017-03-23 23:14 junior19 阅读(234) 评论(0) 推荐(0)

摘要:Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 1490 Accepted Submission(s): 758 ... 阅读全文
posted @ 2017-03-23 19:28 junior19 阅读(144) 评论(0) 推荐(0)

摘要:B. Gerald is into Art time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Ger... 阅读全文
posted @ 2017-03-23 17:50 junior19 阅读(117) 评论(0) 推荐(0)

摘要:原题链接 A. Set of Strings time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output... 阅读全文
posted @ 2017-03-23 17:25 junior19 阅读(162) 评论(0) 推荐(0)

摘要:1240 - Point Segment Distance (3D) PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB Given a segment ... 阅读全文
posted @ 2017-03-23 17:04 junior19 阅读(180) 评论(0) 推荐(0)

摘要:题意:s个学科,每个学科至少要2个老师教,现有m个老师,不能辞退他们的前提下,从n个应聘者招收若干个使得每个学科至少2个老师教,求总工资的最小值。 思路:dp[i][j]中的i表示科目被选的状态,j表示多于1个人选择某科目的状态,dp[(1# define INF 0x3f3f3f3fusi... 阅读全文
posted @ 2017-03-23 00:03 junior19 阅读(115) 评论(0) 推荐(0)

摘要:Anniversary party Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7937 Accepted: 4549 Description There is going to be ... 阅读全文
posted @ 2017-03-21 15:12 junior19 阅读(86) 评论(0) 推荐(0)

摘要:Problem H: 玩具 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 281 Solved: 70 Description 商店有n个玩具,第i个玩具有价格a[i]和快乐值b[i]。有一天,小王来到商店想买一些玩具,商店老板告诉... 阅读全文
posted @ 2017-03-19 17:32 junior19 阅读(137) 评论(0) 推荐(0)

摘要:Problem D: 买iphone Time Limit: 3 Sec Memory Limit: 128 MB Submit: 825 Solved: 121 Description 自从上次仓鼠中了1000万彩票后,彻底变成了土豪了,一群人愿意认他做干爹,仓鼠决定送他的干儿... 阅读全文
posted @ 2017-03-19 17:22 junior19 阅读(118) 评论(0) 推荐(0)

摘要:Invitation Cards Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 3909 Accepted Submis... 阅读全文
posted @ 2017-03-18 23:45 junior19 阅读(139) 评论(0) 推荐(0)

摘要:1165: zas的二进制 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 88 Solved: 39 Description zas最近在玩一种特别的二进制数,它没有前导零且只由1和0组成,并且没有连续的1相邻在一起,例如前几个就... 阅读全文
posted @ 2017-03-17 22:23 junior19 阅读(193) 评论(0) 推荐(0)

摘要:1682 中位数计数 基准时间限制:1 秒 空间限制:131072 KB 分值: 40 难度:4级算法题 收藏 关注 中位数定义为所有值从小到大排序后排在正中间的那个数,如果值有偶数个,通常取最中间的两个数值的平均数作为中位数。 现在有n个数,每个数都是独一无... 阅读全文
posted @ 2017-03-15 23:58 junior19 阅读(177) 评论(0) 推荐(0)

摘要:B. Cthulhu time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ...Once upon a... 阅读全文
posted @ 2017-03-15 17:10 junior19 阅读(281) 评论(0) 推荐(0)

摘要:1770 数数字 基准时间限制:1 秒 空间限制:262144 KB 分值: 20 难度:3级算法题 收藏 关注 统计一下 aaa ⋯ aaan个a × b 的结果里面有多少个数字d,a,b,d均为一位数。 样例解释: 33333... 阅读全文
posted @ 2017-03-15 16:11 junior19 阅读(174) 评论(0) 推荐(0)

摘要:C. Board Game time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Polycar... 阅读全文
posted @ 2017-03-15 15:20 junior19 阅读(216) 评论(0) 推荐(0)

摘要:10471: 数列游戏 I Time Limit: 2 Sec Memory Limit: 128 MB Submit: 63 Solved: 13 [Submit][Status][Web Board] Description 给定一个长度为N的序列,首先进行A次操作,每次操... 阅读全文
posted @ 2017-03-14 16:13 junior19 阅读(309) 评论(0) 推荐(0)

摘要:1190. [福州培训2010] 最大和 ★☆ 输入文件:maxsum.in 输出文件:maxsum.out 简单对比 时间限制:1 s 内存限制:128 MB 【题目描述】 N个数围成一圈,要求从中选择若干个连续的数(注意每个数最多只能选一次)加起来,问能形成的最大... 阅读全文
posted @ 2017-03-14 15:37 junior19 阅读(159) 评论(0) 推荐(0)

摘要:Oulipo Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 39112 Accepted: 15748 Description The French author Georges Pere... 阅读全文
posted @ 2017-03-12 17:01 junior19 阅读(158) 评论(0) 推荐(0)

摘要:L2-008. 最长对称子串 时间限制 100 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越 对给定的字符串,本题要求你输出最长对称子串的长度。例如,给定"Is PAT&TAP sym... 阅读全文
posted @ 2017-03-12 16:14 junior19 阅读(198) 评论(0) 推荐(0)

摘要:1169: Krito的讨伐 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 628 Solved: 105 Description Krito终于干掉了99层的boss,来到了第100层。第100层可以表示成一颗树,这棵树有n个节... 阅读全文
posted @ 2017-03-12 13:07 junior19 阅读(240) 评论(0) 推荐(0)

摘要:1141: 求互质对数 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 2239 Solved: 358 Description 1到n中,任意选择两个数,使其互质,问总共有多少种选择方法,注意(1,2)和(2,1)是同一种方案 ... 阅读全文
posted @ 2017-03-12 10:33 junior19 阅读(179) 评论(0) 推荐(0)

摘要:题意:给定N(1 #include#includeusing namespace std;const long long maxn=4100000;long long phi[maxn*2];long long s[maxn],f[maxn];void phi_table(int n){ ... 阅读全文
posted @ 2017-03-11 20:59 junior19 阅读(129) 评论(0) 推荐(0)

摘要:1174: 我是好人4 Time Limit: 1 Sec Memory Limit: 128 MB Submit: 526 Solved: 103 Description 众所周知,我是好人!所以不会出太难的题,题意很简单 给你n个数,问你1000000000(含1e9)以... 阅读全文
posted @ 2017-03-11 20:00 junior19 阅读(139) 评论(0) 推荐(0)

摘要:Nearest Common Ancestors Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 27907 Accepted: 14302 Description A rooted tre... 阅读全文
posted @ 2017-03-10 14:35 junior19 阅读(106) 评论(0) 推荐(0)

摘要:1055 最长等差数列 基准时间限制:2 秒 空间限制:262144 KB 分值: 80 难度:5级算法题 收藏 关注 N个不同的正整数,找出由这些数组成的最长的等差数列。 例如:1 3 5 6 8 9 10 12 13 14 等差子数列包括(仅包括两项的... 阅读全文
posted @ 2017-03-09 22:52 junior19 阅读(126) 评论(0) 推荐(0)

摘要:reference:http://blog.csdn.net/acdreamers/article/details/8577673 Who Gets the Most Candies? Time Limit: 5000MS Memory Limit: 131072K Tota... 阅读全文
posted @ 2017-03-09 20:44 junior19 阅读(254) 评论(0) 推荐(0)

摘要:More Divisors Time Limit: 2 Seconds Memory Limit: 65536 KB Everybody knows that we use decimal notation, i.e. the base of our notation is 1... 阅读全文
posted @ 2017-03-09 17:10 junior19 阅读(132) 评论(0) 推荐(0)

摘要:E. Number With The Given Amount Of Divisors time limit per test 2 seconds memory limit per test 256 megabytes input standard input ou... 阅读全文
posted @ 2017-03-09 13:46 junior19 阅读(175) 评论(0) 推荐(0)

摘要:Glass Beads Time Limit: 3000MS Memory Limit: 10000K Total Submissions: 4133 Accepted: 2350 Description Once upon a time there was ... 阅读全文
posted @ 2017-03-09 00:16 junior19 阅读(192) 评论(0) 推荐(0)

摘要:Buy Tickets Time Limit: 4000MS Memory Limit: 65536K Total Submissions: 19585 Accepted: 9691 Description Railway tickets were diffi... 阅读全文
posted @ 2017-03-08 22:24 junior19 阅读(124) 评论(0) 推荐(0)

摘要:Billboard Time Limit: 20000/8000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 20957 Accepted Submission(s... 阅读全文
posted @ 2017-03-08 15:15 junior19 阅读(127) 评论(0) 推荐(0)

摘要:Minimum Inversion Number Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 19405 Accepte... 阅读全文
posted @ 2017-03-08 14:05 junior19 阅读(131) 评论(0) 推荐(0)

摘要:递增数 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 921 Accepted Submission(s): 196 ... 阅读全文
posted @ 2017-03-07 22:49 junior19 阅读(283) 评论(0) 推荐(0)

摘要:I Hate It Time Limit: 9000/3000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 70393 Accepted Submission(s)... 阅读全文
posted @ 2017-03-07 22:26 junior19 阅读(126) 评论(0) 推荐(0)

摘要:敌兵布阵 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 83744 Accepted Submission(s): 353... 阅读全文
posted @ 2017-03-07 22:04 junior19 阅读(144) 评论(0) 推荐(0)

摘要:L2-013. 红色警报 时间限制 400 ms 内存限制 65536 kB 代码长度限制 8000 B 判题程序 Standard 作者 陈越 战争中保持各个城市间的连通性非常重要。本题要求你编写一个报警程序,当失去一个城市导致国家被分裂... 阅读全文
posted @ 2017-03-06 11:36 junior19 阅读(116) 评论(0) 推荐(0)

摘要:B. Arpa’s obvious problem and Mehrdad’s terrible solution time limit per test 1 second memory limit per test 256 megabytes input standard in... 阅读全文
posted @ 2017-03-05 00:10 junior19 阅读(126) 评论(0) 推荐(0)

摘要:#1041 : 国庆出游 时间限制:1000ms 单点时限:1000ms 内存限制:256MB 描述 小Hi和小Ho准备国庆期间去A国旅游。A国的城际交通比较有特色:它共有n座城市(编号1-n);城市之间恰好有n-1条公路相连,形成一个树形公路网。小Hi计划从A国首都(... 阅读全文
posted @ 2017-03-04 21:49 junior19 阅读(281) 评论(0) 推荐(0)

摘要:reference:http://blog.csdn.net/lvshubao1314/article/details/39134147 Untrusted Patrol Time Limit: 3 Seconds Memory Limit: 65536 KB Edward i... 阅读全文
posted @ 2017-03-04 17:55 junior19 阅读(137) 评论(0) 推荐(0)

摘要:Palindrome Time Limit: 3000MS Memory Limit: 65536K Total Submissions: 62132 Accepted: 21652 Description A palindrome is a symmetri... 阅读全文
posted @ 2017-03-04 15:19 junior19 阅读(189) 评论(0) 推荐(0)

摘要:AGTC Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12744 Accepted: 4801 Description Let x and y be two strings over s... 阅读全文
posted @ 2017-03-04 14:40 junior19 阅读(203) 评论(0) 推荐(0)

摘要:I know, up on top you are seeing great sights, But down at the bottom, we, too, should have rights. We turtles can't stand it. Our shells will all... 阅读全文
posted @ 2017-03-04 13:24 junior19 阅读(166) 评论(0) 推荐(0)

摘要:D. Bear and Tower of Cubes time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard out... 阅读全文
posted @ 2017-03-04 00:14 junior19 阅读(180) 评论(0) 推荐(0)

摘要:下沙小面的(2) Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2309 Accepted Submission(s): ... 阅读全文
posted @ 2017-03-03 21:55 junior19 阅读(160) 评论(0) 推荐(0)

摘要:Monthly Expense Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 24725 Accepted: 9613 Description Farmer John is an asto... 阅读全文
posted @ 2017-03-03 20:21 junior19 阅读(100) 评论(0) 推荐(0)

摘要:reference:WannaflyUnion Wechat D. Sum of Medians time limit per test 3 seconds memory limit per test 256 megabytes input standard input o... 阅读全文
posted @ 2017-03-03 19:22 junior19 阅读(129) 评论(0) 推荐(0)

摘要:链接:http://codeforces.com/gym/101246/problem/B B. 3D City Model time limit per test 1 second memory limit per test 256 megabytes input input.... 阅读全文
posted @ 2017-03-03 00:12 junior19 阅读(165) 评论(0) 推荐(0)

摘要:reference:http://blog.csdn.net/zwj1452267376/article/details/50660202 Bound Found Time Limit: 5000MS Memory Limit: 65536K Total Submission... 阅读全文
posted @ 2017-03-02 23:38 junior19 阅读(128) 评论(0) 推荐(0)

摘要:2068. Game of Nuts Time limit: 1.0 second Memory limit: 64 MB The war for Westeros is still in process, manpower and supplies are coming to an... 阅读全文
posted @ 2017-03-02 20:03 junior19 阅读(195) 评论(0) 推荐(0)

摘要:2065. Different Sums Time limit: 1.0 second Memory limit: 64 MB Alex is a very serious mathematician and he likes to solve serious problems. ... 阅读全文
posted @ 2017-03-02 17:57 junior19 阅读(145) 评论(0) 推荐(0)

摘要:233333333333333 Pet Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2762 Ac... 阅读全文
posted @ 2017-03-02 12:39 junior19 阅读(80) 评论(0) 推荐(0)

摘要:C. The Art of Dealing with ATM time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard... 阅读全文
posted @ 2017-03-02 11:18 junior19 阅读(164) 评论(0) 推荐(0)

摘要:【HDOJ】欢迎NOIP选手——报名“杭州电子科技大学”三位一体 找连续数 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submis... 阅读全文
posted @ 2017-03-01 23:17 junior19 阅读(135) 评论(0) 推荐(0)

摘要:Error Curves Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 5434 Accepted Submission(... 阅读全文
posted @ 2017-03-01 22:56 junior19 阅读(137) 评论(0) 推荐(0)

摘要:D. !Hasan time limit per test 0.25 seconds memory limit per test 256 megabytes input standard input output standard output Mixed D... 阅读全文
posted @ 2017-03-01 22:33 junior19 阅读(244) 评论(0) 推荐(0)

摘要:reference:WannaflyUnion Wechat D. Pair of Numbers time limit per test 2 seconds memory limit per test 256 megabytes input standard input ... 阅读全文
posted @ 2017-03-01 14:52 junior19 阅读(164) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2017-03-01 14:50 junior19 阅读(86) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2017-03-01 14:50 junior19 阅读(103) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2017-03-01 14:49 junior19 阅读(102) 评论(0) 推荐(0)

摘要: 阅读全文
posted @ 2017-03-01 14:49 junior19 阅读(100) 评论(0) 推荐(0)

摘要:B. Game of Credit Cards time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output... 阅读全文
posted @ 2017-03-01 14:04 junior19 阅读(291) 评论(0) 推荐(0)

摘要:D. String Game time limit per test 2 seconds memory limit per test 512 megabytes input standard input output standard output Littl... 阅读全文
posted @ 2017-03-01 13:37 junior19 阅读(628) 评论(0) 推荐(0)

摘要:C. Dishonest Sellers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Igor... 阅读全文
posted @ 2017-03-01 13:13 junior19 阅读(184) 评论(0) 推荐(0)