07 2016 档案

摘要:题目链接: [传送门][1] Powers of Two time limit per test:3 second     memory limit per test:256 megabytes Description You are given n 阅读全文
posted @ 2016-07-30 09:22 zxzhang 阅读(229) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Proud Merchants Time Limit: 1000MS     Memory Limit: 65536K Description Recently, iSea went to an ancient coun 阅读全文
posted @ 2016-07-29 22:52 zxzhang 阅读(177) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Little Elephant and Cards time limit per test:2 second     memory limit per test:256 megabytes Description The 阅读全文
posted @ 2016-07-29 22:15 zxzhang 阅读(311) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Berland Bingo time limit per test:1 second     memory limit per test:256 megabytes Description Lately, a natio 阅读全文
posted @ 2016-07-29 21:56 zxzhang 阅读(159) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Discounts time limit per test:3 second     memory limit per test:256 megabytes Description One day Polycarpus 阅读全文
posted @ 2016-07-29 21:26 zxzhang 阅读(295) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] 24 Game time limit per test:1 second     memory limit per test:256 megabytes Description Little X used to play 阅读全文
posted @ 2016-07-28 23:33 zxzhang 阅读(164) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Devu and Partitioning of the Array time limit per test:1 second     memory limit per test:256 megabytes Descri 阅读全文
posted @ 2016-07-28 23:26 zxzhang 阅读(163) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Pasha Maximizes time limit per test:1 second     memory limit per test:256 megabytes Description Pasha has a p 阅读全文
posted @ 2016-07-28 23:13 zxzhang 阅读(249) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Lawnmower time limit per test:2 second     memory limit per test:256 megabytes Description You have a garden c 阅读全文
posted @ 2016-07-28 22:33 zxzhang 阅读(259) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Playlist time limit per test:1 second     memory limit per test:256 megabytes Description Manao's friends ofte 阅读全文
posted @ 2016-07-27 23:27 zxzhang 阅读(316) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Defeat the Enemy Time Limit: 3000MS     Memory Limit: 32768 KB Description Long long ago there is a strong tri 阅读全文
posted @ 2016-07-27 22:01 zxzhang 阅读(390) 评论(0) 推荐(0) 编辑
摘要:参考资料:[传送门][1] 问题描述 人自出生起就有体力,情感和智力三个生理周期,分别为23,28和33天。一个周期内有一天为峰值,在这一天,人在对应的方面(体力,情感或智力)表现最好。通常这三个周期的峰值不会是同一天。现在给出三个日期,分别对应于体力,情感,智力出现峰值的日期。然后再给出一个起始日 阅读全文
posted @ 2016-07-26 10:44 zxzhang 阅读(345) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] A Funny Game Time Limit: 1000MS     Memory Limit: 10000K Description Alice and Bob decide to play a funny game 阅读全文
posted @ 2016-07-26 00:43 zxzhang 阅读(284) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Benefit Time Limit: 5000MS     Memory Limit: 32768 KB Description Recently Yaghoub is playing a new trick to s 阅读全文
posted @ 2016-07-25 23:48 zxzhang 阅读(242) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Sum of Consecutive Prime Numbers Time Limit: 1000MS     Memory Limit: 65536K Description Some positive integer 阅读全文
posted @ 2016-07-25 23:37 zxzhang 阅读(169) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Prime Land Time Limit: 1000MS     Memory Limit: 10000K Description Everybody in the Prime Land is using a prim 阅读全文
posted @ 2016-07-25 23:29 zxzhang 阅读(321) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Invitation Cards Time Limit: 5000MS     Memory Limit: 32768 K Description In the age of television, not many p 阅读全文
posted @ 2016-07-25 01:28 zxzhang 阅读(254) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Agri Net Time Limit: 1000MS     Memory Limit: 10000K Description Farmer John has been elected mayor of his tow 阅读全文
posted @ 2016-07-25 01:17 zxzhang 阅读(248) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] find the most comfortable road Time Limit: 1000MS     Memory Limit: 32768 K Description XX星有许多城市,城市之间通过一种奇怪的高速 阅读全文
posted @ 2016-07-25 00:57 zxzhang 阅读(250) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] A strange lift Time Limit: 1000MS     Memory Limit: 32768 K Description There is a strange lift.The lift can s 阅读全文
posted @ 2016-07-24 15:32 zxzhang 阅读(319) 评论(1) 推荐(0) 编辑
摘要:表示图的一种简单的方法是使用一个二维数组,成为 邻接矩阵 表示法,对于每条边(u,v),我们置A[u][v] = 1,否则,数组元素就是0。如果边有一个权,那么我们可以置A[u][v]等于该权,而使用一个很大或者很小的权作为标记表示不存在的边。邻接矩阵的表示法无论是在理解还是写法上都很简单,但是空间 阅读全文
posted @ 2016-07-24 11:14 zxzhang 阅读(975) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Cells Not Under Attack time limit per test:2 second     memory limit per test:256 megabytes Description Vasya 阅读全文
posted @ 2016-07-24 01:18 zxzhang 阅读(361) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] They Are Everywhere time limit per test:2 second     memory limit per test:256 megabytes Description Sergei B. 阅读全文
posted @ 2016-07-23 21:58 zxzhang 阅读(215) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Rank of Tetris Time Limit: 1000MS     Memory Limit: 32768 K Description 自从Lele开发了Rating系统,他的Tetris事业更是如虎添翼,不久他 阅读全文
posted @ 2016-07-23 20:04 zxzhang 阅读(363) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Domino Effect time limit per test:1 second     memory limit per test:256 megabytes Description Little Chris is 阅读全文
posted @ 2016-07-22 22:45 zxzhang 阅读(226) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Domino Effect time limit per test:1 second     memory limit per test:256 megabytes Description Little Chris kn 阅读全文
posted @ 2016-07-22 22:36 zxzhang 阅读(238) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Kefa and Company time limit per test:2 second     memory limit per test:256 megabytes Description Kefa wants t 阅读全文
posted @ 2016-07-22 19:50 zxzhang 阅读(268) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Doctor time limit per test:1 second     memory limit per test:256 megabytes Description There are n animals in 阅读全文
posted @ 2016-07-22 02:00 zxzhang 阅读(333) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Flyer Time Limit: 1000MS     Memory Limit: 32768 K Description The new semester begins! Different kinds of stu 阅读全文
posted @ 2016-07-22 01:45 zxzhang 阅读(231) 评论(0) 推荐(0) 编辑
摘要:参考资料:      [ 1、程序员编程艺术第二十五章 ][1]      [ 2、勇幸的博客 ][2] 二分查找除了参考以下代码外,参考lower_bound()upper_bound()两个函数的 阅读全文
posted @ 2016-07-21 17:38 zxzhang 阅读(290) 评论(0) 推荐(1) 编辑
摘要:题目链接: [传送门][1] DZY Loves Chemistry time limit per test1 second     memory limit per test256 megabytes Description DZY loves P 阅读全文
posted @ 2016-07-21 10:46 zxzhang 阅读(246) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] DZY Loves Chemistry time limit per test:1 second     memory limit per test:256 megabytes Description DZY loves 阅读全文
posted @ 2016-07-20 20:29 zxzhang 阅读(253) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] 敌兵布阵 Time Limit: 2000MS     Memory Limit: 32768 K Description C国的死对头A国这段时间正在进行军事演习,所以C国间谍头子Derek和他手下Tidy又开始忙乎了 阅读全文
posted @ 2016-07-20 01:08 zxzhang 阅读(277) 评论(0) 推荐(0) 编辑
摘要:I Hate It Time Limit: 3000MS Memory Limit: 32768 K ##Description 很多学校流行一种比较的习惯。老师们很喜欢询问,从某某到某某当中,分数最高的是多少。 这让很多学生很反感。 不管你喜不喜欢,现在需要你做的是,就是按照老师的要求,写一个程序 阅读全文
posted @ 2016-07-20 01:02 zxzhang 阅读(357) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] One Bomb time limit per test:1 second     memory limit per test:256 megabytes Description You are given a desc 阅读全文
posted @ 2016-07-20 00:15 zxzhang 阅读(172) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Hometask Time Limit: 2 seconds     Memory Limit: 256 megabytes Description Furik loves math lessons very much, 阅读全文
posted @ 2016-07-19 00:32 zxzhang 阅读(263) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Dubstep Time Limit: 1000MS     Memory Limit: 32768 KB Description Vasya works as a DJ in the best Berland nigh 阅读全文
posted @ 2016-07-19 00:23 zxzhang 阅读(720) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Copying Books Time Limit: 3000MS     Memory Limit: 32768 KB Description Before the invention of book printing, 阅读全文
posted @ 2016-07-19 00:02 zxzhang 阅读(277) 评论(0) 推荐(0) 编辑
摘要:xxx游戏 Time Limit: 1000MS     Memory Limit: 32768 KB Description 小M最近很喜欢玩XXX游戏。这个游戏很简单,仅由3个场景(分别为1、2、3)构成构成,只存在1 2、2 3、3 1的路径, 阅读全文
posted @ 2016-07-18 00:47 zxzhang 阅读(509) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Power of Matrix Time Limit: 3000MS      Description 给一个n阶方阵,求A1+A2+A3+......Ak。 思路 A1+A2+...+An = (A1+A2+...+A 阅读全文
posted @ 2016-07-17 11:03 zxzhang 阅读(191) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Graph Construction Time Limit: 3000MS     Memory Limit: 65536K Description Graph is a collection of edges E an 阅读全文
posted @ 2016-07-14 23:55 zxzhang 阅读(271) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Frogs' Neighborhood Time Limit: 5000MS     Memory Limit: 10000K Description 未名湖附近共有N个大小湖泊L1, L2, ..., Ln(其中包括未 阅读全文
posted @ 2016-07-14 23:48 zxzhang 阅读(236) 评论(0) 推荐(0) 编辑
摘要:题目链接: 传送门 确定比赛名次 Time Limit: 1000MS Memory Limit: 65536K Description 有N个比赛队(1<=N<=500),编号依次为1,2,3,。。。。,N进行比赛,比赛结束后,裁判委员会要将所有参赛队伍从前往后依次排名,但现在裁判委员会不能直接获 阅读全文
posted @ 2016-07-13 23:54 zxzhang 阅读(228) 评论(0) 推荐(0) 编辑
摘要:みねちゃんの修罗场 Time Limit: 5000 mSec     Memory Limit: 1024 KB Description みねちゃん是个成绩优秀大学二年级学生,本来是和像自己妹妹一般的青梅竹马一起过着普通的大学生活的,但某天却被校内 阅读全文
posted @ 2016-07-12 21:51 zxzhang 阅读(293) 评论(3) 推荐(0) 编辑
摘要:第一章 词法“陷阱” 1.4整型常量 如果一个整型常量的第一个字符是数字0,那么该常量将被视作八进制数。因此,10与010的含义截然不同。需要注意这种情况,有时候在上下文为了格式 对齐的需要,可能无意中将十进制数写成了八进制数,例如: 阅读全文
posted @ 2016-07-11 23:13 zxzhang 阅读(182) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] 畅通工程续 Time Limit: 1000MS     Memory Limit: 65536K Description 某省自从实行了很多年的畅通工程计划后,终于修建了很多路。不过路多了也不好,每次要从一个城镇到另一 阅读全文
posted @ 2016-07-10 21:46 zxzhang 阅读(590) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] Brave Game Time Limit: 1000MS     Memory Limit: 65536K 题目描述 各位勇敢者要玩的第一个游戏是什么呢?很简单,它是这样定义的: 1、 本游戏是一个二人游戏; 2、 有 阅读全文
posted @ 2016-07-10 11:24 zxzhang 阅读(200) 评论(0) 推荐(0) 编辑
摘要:题目链接: [传送门][1] 青蛙的约会 Time Limit: 1000MS     Memory Limit: 65536K Description 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度 阅读全文
posted @ 2016-07-05 14:26 zxzhang 阅读(209) 评论(0) 推荐(0) 编辑
摘要:参考资料:[传送门][1] 并查集是我暑假从高手那里学到的一招,觉得真是太精妙的设计了。以前我无法解决的一类问题竟然可以用如此简单高效的方法搞定。不分享出来真是对不起party了。(party:我靠,关我嘛事啊?我跟你很熟么?) 来看一个实例,杭电1232畅通工程 首先在地图上给你若干个城镇,这些城 阅读全文
posted @ 2016-07-05 10:16 zxzhang 阅读(489) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示