E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
Berland
CodeForces 32C. Flea 水题
test 256 megabytes input standard input output standard output It is known that fleas in
Berland
·
2015-10-30 13:50
codeforces
2014-2015 ACM-ICPC, NEERC, Southern Subregional Contest (Online Mirror, ACM-ICPC Rules, Teams Preferred)
limit per test 512 megabytes input standard input output standard output A well-known
Berland
·
2015-10-30 11:35
online
Codeforces 1A (A. Theatre Square) Simple math problem
megabytes input standard input output standard output Theatre Square in the capital city of
Berland
·
2015-10-28 08:09
codeforces
【Codeforces Round#279 Div.2】B. Queue
Queue During the lunch break all n
Berland
State University students lined up in the food
·
2015-10-28 08:10
codeforces
Codeforces Beta Round #29 (Div. 2, Codeforces format) C. Mail Stamps 离散化拓扑排序
Bob knows that when
Berland
's post o
·
2015-10-23 09:48
codeforces
Codeforces Beta Round #6 (Div. 2 Only) E. Exposition multiset
problemset/problem/6/E Description There are several days left before the fiftieth birthday of a famous
Berland
's
·
2015-10-23 09:45
codeforces
Codeforces Beta Round #5 E. Bindian Signalizing 并查集
codeforces.com/problemset/problem/5/E Description Everyone knows that long ago on the territory of present-day
Berland
·
2015-10-23 09:44
codeforces
Codeforces Round #311 (Div. 2) A. Ilya and Diplomas 水题
codeforces.com/contest/557/problem/A Description Soon a school Olympiad in Informatics will be held in
Berland
·
2015-10-21 12:42
codeforces
Codeforces Gym 100513I I. Sale in GameStore 暴力
Memory Limit: 256 MB 题目连接 http://codeforces.com/gym/100513/problem/I Description A well-known
Berland
·
2015-10-21 10:03
codeforces
Codeforces 567B
Berland
National Library
题目链接:http://codeforces.com/contest/567/problem/B官方题解:Toanswerthequeriescorrect,weneedtoknowifthepersonisstillinthelibrary.Forthatpurposewewilluse in arrayoftype bool.Alsowewillstoretwovariablesforthea
piaocoder
·
2015-08-07 11:00
set
Berland
National Library
A.LinelandMailtimelimitpertest3secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputAllcitiesofLinelandarelocatedonthe Ox coordinateaxis.Thus,eachcityisassociatedwithitsposition
u013015642
·
2015-08-07 09:00
CF 567B(
Berland
National Library-看成折线图)
B.BerlandNationalLibrarytimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputBerlandNationalLibraryhasrecentlybeenbuiltinthecapitalofBerland.Inaddition,inthelibra
nike0good
·
2015-08-06 17:00
Berland
National Library (模拟)
题意,有个图书馆,+表示进人,-表示出人,记录前有人,所以可以没有+就有-,问可能的最大值是多少人。BerlandNationalLibraryhasrecentlybeenbuiltinthecapitalofBerland.Inaddition,inthelibraryyoucantakeanyofthecollectedworksofBerlandleaders,thelibraryhasa
h1021456873
·
2015-08-06 12:00
Berland
National Library(简单模拟)
Description一个图书馆的容纳量有限,每天会有很多人进进出出,如果人数超出了图书馆的容纳上限,图书馆就会爆掉,现在给出人员进出情况,问图书馆的最小容纳量(图书馆初始时可能有人)Input第一行为一个整数n表示人员进出次数,之后n行每行一个人员进出情况,+x表示x进入图书馆,-x表示x离开图书馆Output输出图书馆最小容纳量SampleInput6+12001-12001-1-1200+1
V5ZSQ
·
2015-08-06 10:00
CodeForces 567-
Berland
National Library
#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include usingnamespacestd; intmain()
MrSiz
·
2015-08-06 08:00
算法
CF
Berland
National Library-水题- Codeforces Round #Pi (Div. 2)
http://codeforces.com/contest/567/problem/B给n个数据记录图书馆进出的人求 图书馆最小的容纳量#include #include #include #include #include #include #include #include #include #include usingnamespacestd; __int64vis[1000000+5]
viphong
·
2015-08-06 04:00
Berland
National Library
B.BerlandNationalLibrarytimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputBerlandNationalLibraryhasrecentlybeenbuiltinthecapitalofBerland.Inaddition,inthelibra
u010422038
·
2015-08-06 04:00
CodeForces 1C - Ancient
Berland
Circus
这道也太数学了吧!#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include usingnamespacestd; constintMA
MrSiz
·
2015-08-05 11:00
算法
CF
CodeForces 228E The Road to
Berland
is Paved With Good Intentions (2-Sat)
题目地址: http://codeforces.com/problemset/problem/228/E E.TheRoadtoBerlandisPavedWithGoodIntentionstimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputBerlandhas n
kalilili
·
2015-07-09 00:00
[CodeForces158D]Ice Sculptures[暴力]
题目链接:[CodeForces158D]IceSculptures[暴力]题意分析:
Berland
大学周年庆,有N个冰雕等距地站成一个圈,每个冰雕都有自己的价值,现在你可以融化掉其中的一些,但必须使得剩余的冰雕围城的是正多边形
CatGlory
·
2015-06-07 23:00
codeforces
暴力
NYOJ 991 Registration system(map简单应用)
OK 描述 A new e-mail service "Berlandesk" is going to be opened in
Berland
in the near future.
helloiamclh
·
2015-06-03 07:00
Roads not only in
Berland
CodeForces 25D 并查集
D.RoadsnotonlyinBerlandtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputBerlandGovernmentdecidedtoimproverelationswithneighboringcountries.Firstofall,itwasde
wust_ZJX
·
2015-05-18 20:00
Registration system
Registrationsystem时间限制:1000 ms | 内存限制:65535 KB难度:2描述A new e-mail service "Berlandesk" is going to be opened in
Berland
bao_libra
·
2015-04-21 14:00
Codeforces534E:
Berland
Local Positioning System
InBerlandabustravelsalongthemainstreetofthecapital.Thestreetbeginsfromthemainsquareandlookslikeaverylongsegment.Thereare n busstopslocatedalongthestreet,the i-thofthemislocatedatthedistance ai fromthe
libin56842
·
2015-04-18 20:00
CF
Registration system
Registrationsystem时间限制:1000 ms | 内存限制:65535 KB难度:2描述A new e-mail service "Berlandesk" is going to be opened in
Berland
zsc2014030403015
·
2015-03-27 17:00
C++
map
STL
codeforces--Ancient
Berland
Circus(三点确定最小多边形)
AncientBerlandCircusTimeLimit:2000MS MemoryLimit:65536KB 64bitIOFormat:%I64d&%I64uSubmit StatusAppointdescription: SystemCrawler (2015-01-06)DescriptionNowadaysallcircusesinBerlandhavearoundar
u013015642
·
2015-01-08 21:00
Ancient
Berland
Circus
这道题不会,看了网上思路是,先求边,然后通过海伦公式得到外接圆半径,得到三个圆心角,然后求最大公约数gcd,那么边数就是2pi/gcd,然后求出最小单位的三角形面积,乘上边数就是答案。几何题果然不行
Guard_Mine
·
2014-10-27 09:00
codeforces
SGU 536
Berland
Chess 状态压缩 + BFS
题目大意:就是现在有一个n*m的棋盘,1 #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include usingnamespacestd
u013738743
·
2014-09-02 19:00
chess
bfs
状态压缩
sgu
sgu
536
Berland
CodeForces 1C Ancient
Berland
Circus
题目链接: http://codeforces.com/problemset/problem/1/C题意:题目巴拉巴拉说了一通,其实就是给出一个正n边形上的三个点,要你求出这个正n边形的面积,需要n最小题解:首先可以明确的是:用着三个点可以确定这个正多边形的外接圆所有可以先求出这个三点所构成的三角形的边长a,b,c,利用海伦公式求出三角形面积S然后利用R=abc/(4S),求出这个外接圆的半径
fjy4328286
·
2014-07-22 10:00
codeforces
计算几何
Ancient
Berland
Circus
果然Java还是不靠谱啊,一个NaN把我整了半天~~题目大意:有一个正多边形,给出任意三个顶点的坐标,求这个正多边形的最小面积。解题思路:首先要知道这三个顶点组成的三角形的外接圆一定是这个正多边形的外接圆。用过计算出三角形的三边长,可以计算出三角型面积,进而推出外接圆半径。可以得到三个圆心角,找出最大公约数,那就是最大角度。就可以计算出多边形面积了~~下面是代码:importjava.text.D
lin375691011
·
2014-05-27 20:00
codeforces
计算几何
刷题
SGU 319. Kalevich Strikes Back (线段树)
0.5 second(s) Memory limit: 65536 kilobytes input: standard output: standard And yet again the
Berland
·
2014-05-02 11:00
线段树
NYOJ 991 Registration system
Registrationsystem时间限制:1000 ms | 内存限制:65535 KB难度:2描述A new e-mail service "Berlandesk" is going to be opened in
Berland
u013806814
·
2014-04-25 08:00
STL
nyoj
CodeForces-1C-Ancient
Berland
Circus
NowadaysallcircusesinBerlandhavearoundarenawithdiameter13meters,butinthepastthingsweredifferent.InAncientBerlandarenasincircuseswereshapedasaregular(equiangular)polygon,thesizeandthenumberofanglescoul
u012861385
·
2014-04-21 22:00
Marathon(精度 + 分析模拟)
test 256 megabytes input standard input output standard output Valera takes part in the
Berland
Simone_chou
·
2014-03-21 19:00
模拟
On Corruption and Numbers(数学)
limit per test 256 megabytes input standard input output standard output Alexey, a merry
Berland
Simone_chou
·
2014-03-01 13:00
number
Berland
Bingo
B.BerlandBingotimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputLately,anationalversionofabingogamehasbecomeverypopularinBerland.Thereare n playersplayingthega
u012797220
·
2013-12-09 12:00
codeforces
Ancient
Berland
Circus
对于一个边数未知的正多边形,给出其上的三个点,求出其可能的最小的面积。首先对于正多边形其中心肯定是给出三角形的外形。然后对于三角形的三个角求最大公约数A。则N=2*Pi/A。剩下的就是计算面积了。做题的时候一直在纠结怎样求边数,然后发现double类型的也能求出最大公约数来。。。#include #include #include #include #include #include #inclu
u012161037
·
2013-11-25 20:00
SGU536
Berland
Chess
棋盘上白子只有一个国王 黑子给出 各子遵从国际象棋的走法 黑子不动,白子不能走进黑子的攻击范围以内 问白字能不能吃掉所有的黑子 直接搜索就好了,各子状态用二进制表示 不过每个子被吃之后攻击范围会改变 所以重点是预处理每种剩余棋子状态的攻击范围 比较麻烦,注意白子吃掉一颗子之后所在的位置也可能是危险位置 //#pragma comment(linke
·
2013-11-01 18:00
ch
SGU 536
Berland
Chess(状态压缩 + bfs)
在一个n*m的棋盘上,你有一个whiteking,然后还有一些( #include #include #include #include #include #include #include #include #include #include #include #include #include #include #defineFF(i,a,b)for(inti=a;i=b;i--) #defi
diary_yang
·
2013-10-21 12:00
叉姐的魔法训练(第十课)---- 幽默大师卫冕战
挖坑------------------------一构造矩阵SGU409
Berland
Flag构造在一个边长为n*n(也就是说面积为n*n*n*n的)正方形。正方形中只包含'*'和'.'。
cyendra
·
2013-10-06 14:00
CF1C Ancient
Berland
Circus
对于这种水题,我只想说:为啥精度只有开1e-3才能过==(计算几何水题,大家就不要看了==)#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include u
huangshenno1
·
2013-09-24 00:00
coderforce 1c--Ancient
Berland
Circusp
一道几何题,先是海伦定理:三角形三边为a,b,c, 外接圆半径为R; p=(a+b+c)/2; S=sqrt(p*(p-a)*(p-b)*(p-c));再由正弦定理:S=a*b*c/(4*R); 由 推出。由上述公式可求出外接圆半径R;再由余弦定理: 求出三角形中的其中2个边对应的圆心角的大小(即2个半径R和一条三角形边组成的三角形),另外一角可由2pie减去已求出的2角。3角均求出之后,再求3
ymrfzr
·
2013-04-30 19:00
几何
coderforce
Roads not only in
Berland
并查集
D.RoadsnotonlyinBerlandtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputBerlandGovernmentdecidedtoimproverelationswithneighboringcountries.Firstofall,itwasde
cyendra
·
2013-04-08 15:00
题解
图论
codeforces
CodeForces 25D Roads not only in
Berland
D.RoadsnotonlyinBerlandtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputBerlandGovernmentdecidedtoimproverelationswithneighboringcountries.Firstofall,itwasde
qiqijianglu
·
2013-02-10 15:00
CF-25D - Roads not only in
Berland
(并查集或者搜索)
D-RoadsnotonlyinBerlandCrawlinginprocess...CrawlingfailedTimeLimit:2000MSMemoryLimit:262144KB64bitIOFormat:%I64d&%I64uSubmitStatusPracticeCodeForces25DDescriptionBerlandGovernmentdecidedtoimproverelat
nealgavin
·
2013-02-02 21:00
CF-25C - Roads in
Berland
(水题)
C-RoadsinBerlandCrawlinginprocess...CrawlingfailedTimeLimit:2000MSMemoryLimit:262144KB64bitIOFormat:%I64d&%I64uSubmitStatusPracticeCodeForces25CDescriptionTherearencitiesnumberedfrom1toninBerland.Some
nealgavin
·
2013-02-02 21:00
第十七场
DescriptionEveryoneknowsthat2010FIFAWorldCupisbeingheldinSouthAfricanow.BythedecisionofBFA(
Berland
'sFootballAssociation
wahaha1_
·
2013-01-23 21:00
上一页
1
2
3
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他