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