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
codeforce
Codeforce
s Round #257 (Div. 2/A)/
Codeforce
s450A_Jzzhu and Children
解题报告没什么好说的,大于m的往后面放,,,re了一次,,,#include#include#include#includeusingnamespacestd;structnode{intx,cd;}num[1000000];intmain(){intn,m,c;cin>>n>>m;inti;for(i=0;i>num[i].cd;num[i].x=i+1;}for(i=0;im){num[i].
_nplus
·
2020-08-12 18:28
CF
Codeforce
s Round #222 (Div. 2)
A.PlayingwithDicetimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTwoplayersareplayingagame.Firsteachofthemwritesanintegerfrom1to6,andthenadiceisthrown.Thepla
_nplus
·
2020-08-12 18:28
CF
Codeforce
s Round #258 (Div. 2/C)/
Codeforce
s451C_Predict Outcome of the Game(枚举)
解题报告http://blog.csdn.net/juncoder/article/details/38102391题意:n场比赛其中k场是没看过的,对于这k场比赛,a,b,c三队赢的场次的关系是a队与b队的绝对值差d1,b队和c队绝对值差d2,求是否能使三支球队的赢的场次相同。思路:|B-A|=d1|C-B|=d2A+B+C=k这样就有4种情况,分别是:B>A&&CA&&C>BBB分别算出在k场
_nplus
·
2020-08-12 18:28
CF
Codeforce
s Round #261 (Div. 2)459A. Pashmak and Garden(数学题)
题目链接:http://
codeforce
s.com/problemset/problem/459/AA.PashmakandGardentimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPashmakhasfalleninlovewithanattractivegi
田益铭
·
2020-08-12 18:54
CodeForces
Codeforce
s 450 C. Jzzhu and Chocolate
二次函数n*m/((x+1)*(k-x+1))是对称轴>0开口向下的二次函数,直接考虑x==0||x==n-1||x==m-1等进行判断即可.....C.JzzhuandChocolatetimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputJzzhuhasabigrec
码代码的猿猿的AC之路
·
2020-08-12 18:53
数学
Codeforce
s Round #236 (Div. 2)
A.NutsYouhaveanutsandlotsofboxes.Theboxeshaveawonderfulfeature:ifyouputx(x ≥ 0)divisors(thespacialbarsthatcandivideabox)toit,yougetabox,dividedintox + 1sections.Youareminimalist.Therefore,ontheonehand
13vickey
·
2020-08-12 18:22
数学
Codeforce
s Round #261 (Div. 2) A. Pashmak and Garden【水】
A.PashmakandGardentimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPashmakhasfalleninlovewithanattractivegirlcalledParmidasinceoneyearago...Today,Pashmaksetup
角落的秋天
·
2020-08-12 18:51
Codeforces
2019 学习规划
1.算法未来一年首要目标leetcode、
codeforce
sdiv2保证能够AK掉,因此也会针对性地进行算法训练。
DDY92
·
2020-08-12 18:17
golang
Codeforce
s 451C Predict Outcome of the Game(暴力)
题目连接:
Codeforce
s451CPredictOutcomeoftheGame题目大意:题意有点坑,就是三支球队有n场比赛,错过了k场,即这k场比赛不知道输赢,只知道第一支球队和第二支球队胜局情况差
JeraKrs
·
2020-08-12 18:41
GRADE:D
CF
搜索-暴力搜索
Codeforce
s 449B Jzzhu and Cities(最短路)
题目链接:
Codeforce
s449BJzzhuandCities题目大意:Jzzhu是一个国家的总统,这个国家有N座城市,以1为首都,已经存在了M条公路,给定M条路。
JeraKrs
·
2020-08-12 18:41
GRADE:C
CF
图论-最短路
Codeforce
s Round #261 (Div. 2)(ABCD)
A.PashmakandGardentimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPashmakhasfalleninlovewithanattractivegirlcalledParmidasinceoneyearago...Today,Pashmaksetup
ccsu_deer
·
2020-08-12 17:12
数据结构---树状数组&RMQ
codeforce题解
Codeforce
s Round #498 (Div. 3)-A. Adjacent Replacements
A.AdjacentReplacements第一次打cf就做出一道这样的找规律的题,打到自闭。#includeusingnamespacestd;intmain(){intn,a[1001];cin>>n;inti;intflag=0;for(i=0;i>a[i];if(!(a[i]&1))a[i]--;if(!flag){cout<
李瑞豪
·
2020-08-12 17:57
Codeforces
CodeForce
s - 940C Phone Numbers (字符串,模拟)
Andwherethearethephonenumbers?YouaregivenastringsconsistingoflowercaseEnglishlettersandanintegerk.Findthelexicographicallysmalleststringtoflengthk,suchthatitssetoflettersisasubsetofthesetoflettersofsa
oldwong77
·
2020-08-12 17:41
CodeForce
s 25BPhone numbers(简单的字符串模拟题目)
本题的题意如下:就是把每一串电话号码给分割开,分割为两个一组或者三个一组,所以笨渣渣心里想了好久好久,找出了一个比较笨的方法,就是对其进行分类讨论,看其对3取余后的结果是几,这样总共有三种可能性。AC代码如下:这里写代码片#include#include#includeusingnamespacestd;intmain(){intn;stringa;cin>>n;cin>>a;if(n%3==0)
夜幕下的ACM之路
·
2020-08-12 17:45
简单题目
CodeForces
Codeforce
s 25B Phone numbers(此题有毒可以忽略)
题目:http://
codeforce
s.com/problemset/problem/25/B代码:#include#include#includeusingnamespacestd;intmain(
tenglinxi
·
2020-08-12 17:44
Codeforces
Codeforce
s 34C-Page Numbers(set+vector+暴力乱搞)
C.PageNumberstimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutput«Bersoft»companyisworkingonanewversionofitsmostpopulartexteditor—Bord2010.Bord,likemanyothertex
_lyl
·
2020-08-12 17:19
STL
Codeforces
Codeforce
s 1060A Phone Numbers
打扰了,一开始题目就读错了。看样例的时候百思不得其解,反复看题干N多遍,都要看吐了,实在没发现自己哪里理解错了。但是不行啊,自己理解的题意连样例也通不过!!这可是A题啊,水题啊,5000+人通过的!好了,上google翻译吧。.......Eachcardmustbeusedinatmostonephonenumber。Google翻译:每张卡最多只能使用一个电话号码(有点生硬23333)我的翻译
polanwind
·
2020-08-12 17:36
ACM
codeforce
s940 C. Phone Numbers【贪心】
C.PhoneNumberstimelimitpertest2secondsmemorylimitpertest256megabytesAndwherethearethephonenumbers?YouaregivenastringsconsistingoflowercaseEnglishlettersandanintegerk.Findthelexicographicallysmallestst
nobleman__
·
2020-08-12 17:56
----
贪心----
【
codeforce
s#25B】 Phone numbers
B.Phonenumberstimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPhonenumberinBerlandisasequenceofndigits.Often,tomakeiteasiertomemorizethenumber,itisdividedin
Tiramicrystal
·
2020-08-12 17:24
codeforces
CodeForce
s 151B Phone Numbers(简单模拟)
题目链接B.PhoneNumberstimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputWintersarejustdamnfreezingcoldinNvodsk!That'swhyagroupofnfriendspreferstotakeataxi,orderap
madaidao
·
2020-08-12 17:42
模拟
简单题
#9 (Div. 2 Only) D. How many trees? (dp)(好题)
题目链接:点击打开链接http://
codeforce
s.com/contest/9/problem/D题意:规定一个二叉树,有n个节点,问你深度大于等于h的一共有多少种?
LzyRapX
·
2020-08-12 17:14
ACM_树形DP
ACM_基础DP
codeforces
Codeforce
s Round #339 D. Skills
D.Skillstimelimitpertest2secondsmemorylimitpertest256megabytesLeshaplaystherecentlypublishednewversionofthelegendarygamehacknet.Inthisversioncharacterskillmechanismwasintroduced.Now,eachplayercharacte
just_for_your_smile
·
2020-08-12 17:27
ACM
codeforce
s B
题源Let'sdenoted(n)asthenumberofdivisorsofapositiveintegern.Youaregiventhreeintegersa,bandc.Yourtaskistocalculatethefollowingsum:Findthesummodulo1073741824(230).InputThefirstlinecontainsthreespace-separ
旧时量刑
·
2020-08-12 17:33
比赛赛后总结
CodeForce
s 451 C. Predict Outcome of the Game
C.PredictOutcomeoftheGametimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherearengamesinafootballtournament.Threeteamsareparticipatinginit.Currentlykgamesh
New-Spirit
·
2020-08-12 16:09
CodeForces
【原创】【
Codeforce
s】
Codeforce
s Round #500 (Div. 2) [based on EJOI] A.Piles With Stones & B.And
Codeforce
sRound#500(Div.2)A.PilesWithStones&B.And说在说在说在前面前面前面强势推荐页游一枚
codeforce
s,简称CF。与全球玩家一起天梯上分。
C20182030Epic
·
2020-08-12 16:44
#
☆☆☆★★嗯待沉吟片刻
#
☠☠☠☠☠哼本人已死亡
#
题目
Codeforce
s Round #372 (Div. 2) A
DescriptionZStheCoderiscodingonacrazycomputer.Ifyoudon'ttypeinawordforacconsecutiveseconds,everythingyoutypeddisappear!Moreformally,ifyoutypedawordatsecondaandthenthenextwordatsecondb,thenifb - a ≤ c,
anvqxl0105
·
2020-08-12 16:29
codeforce
s 898B. Proper Nutrition(暴力+思维)
题意:给你n问有没有两个非负整数x,y满足x·a + y·b = n。思路:暴力枚举x,判断有没有整数y使式子成立。#includeusingnamespacestd;intmain(){intn,a,b;while(~scanf("%d%d%d",&n,&a,&b)){boolflag=false;for(inti=0;i*a<=n;i++){if((n-a*i)%b==0){flag=true
张松超
·
2020-08-12 16:43
【思维/构造】
【暴力/模拟/水题】
codeforce
s 898C. Phone Numbers(模拟+map,set,vector)
题意:N表示下面有N个字符串,每个字符串第一个表示名字,第二个表示后面有几个电话号,后面是这几个电话号(电话号允许有前导0),(name,number_of_phone_numbers,phone_numbers)中间都用空格隔开。现在需要你帮他整理这些电话号,当一个字符串为另一个字符串的后缀或相同时,那么我们删除这个电话号。输出整理后的这些。(题意不是很好理解,结合样例理解好点)思路:模拟。用m
张松超
·
2020-08-12 16:43
【暴力/模拟/水题】
CodeForce
s - 451C(模拟)
Berland,2016.Theexchangerateofcurrencyyouallknowagainsttheburlehasincreasedsomuchthattosimplifythecalculations,itsfractionalpartwasneglectedandtheexchangerateisnowassumedtobeaninteger.Reliablesourcesh
旺旺_碎_冰冰
·
2020-08-12 16:15
codeforce
暴力模拟
Codeforce
s Round #451 (Div. 2) A-C题解
伤心总是难免的,明明是送分场,愣是掉了61分。A.Roundingtimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVasyahasanon-negativeintegern.Hewantstoroundittonearestinteger,whichendsupwi
Ever_glow
·
2020-08-12 16:49
******CF******
CodeForce题解
Codeforce
s 898
898ARoundingVasyahasanon-negativeintegern.Hewantstoroundittonearestinteger,whichendsupwith0.Ifnalreadyendsupwith0,Vasyaconsidersitalreadyrounded.Forexample,ifn = 4722answeris4720.Ifn = 5Vasyacanroundi
语海与冰
·
2020-08-12 16:12
Codeforces
Codeforce
s Round #470 div2 C
C.ProducingSnowtimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputAlicelikessnowalot!Unfortunately,thisyear'swinterisalreadyover,andshecan'texpecttohaveanymoreo
ACM_e
·
2020-08-12 16:09
codeforces
Codeforce
s Round451C
中文题意:打印朋友们的电话号码,一个人可以有很多个电话号码,如果他的一个电话号码是以另一个电话号码结尾,就不输出。涉及知识点:map,set,还有字典树C.PhoneNumberstimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVasyahasseveralpho
_TianZhirui
·
2020-08-12 16:28
codeforces
待解决的算法/数据结构题目
Codeforce
s Round #261(Div.2) A. Pashmak and Garden
A.PashmakandGardentimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPashmakhasfalleninlovewithanattractivegirlcalledParmidasinceoneyearago...Today,Pashmaksetup
jiangX1994
·
2020-08-12 16:45
小水
cf
codeforces
【蒟蒻的点分治专题训练】----5道题题解
附题:poj1741,hdu4812,
codeforce
s161D,bzoj3697,bzoj2152先来一波总结:好好做了这几道题之后,发现树上的点分治几乎可以说是模板题,每道题改变的地方都只有处理过当前子树根节点的路径
deritt
·
2020-08-12 10:58
oi之路
【
CodeForce
s 602B】G - 一般水的题2-Approximating a Constant Range
DescriptionWhenXelloswasdoingapracticecourseinuniversity,heoncehadtomeasuretheintensityofaneffectthatslowlyapproachedequilibrium.Agoodwaytodeterminetheequilibriumintensitywouldbechoosingasufficientlyl
dingguayi7025
·
2020-08-11 21:03
0706 CF#822A-I'm bored with life #822B-Crossword solving
原题目:A题:http://
codeforce
s.com/problemset/problem/822/AB题:http://
codeforce
s.com/problemset/problem/822/
M_H5211
·
2020-08-11 20:11
A+B
set
0526 CF#400A&G2n#B - Inna and Choose Options
原题目链接:
CodeForce
s-400AInnaandChooseOptionsTherealwaysissomethingtochoosefrom!
M_H5211
·
2020-08-11 20:11
A+B
set
程序竞赛SDAU 第十一周总结
这周就打了一场
codeforce
dvi4,才做出来两个。
我是个菜鸡.
·
2020-08-11 19:39
Codeforce
s Round #648 (Div. 2)
AMatrixGameAshishandVivekplayagameonamatrixconsistingofnrowsandmcolumns,wheretheytaketurnsclaimingcells.Unclaimedcellsarerepresentedby0,whileclaimedcellsarerepresentedby1.Theinitialstateofthematrixisg
我是个菜鸡.
·
2020-08-11 19:39
Codeforce
s Round #648 (Div. 2)(A-F)简要题解
Codeforce
sRound#648(Div.2)(A-F)简要题解A.MatrixGame奇偶性博弈。显然每次选一个格子,可用的行和列都会减1,所以只需看最初可用的行和列的最小值的奇偶性即可。
Harris-H
·
2020-08-11 19:07
codeforce简要题解
codeforce
DIV2
题解
Codeforce
s Round #560 (Div. 3) A-F解题报告
现场赛三题,先吐槽下。c意识到贪心太晚,d被卡坑点,e会做了发现时间不够,f我觉得不假啊,补题的时候一直wa。比赛一开始,读题有点慢,读懂后A题,就开始写。B题在纠结用multiset还是优先队列,其实3分钟就写完了,觉得不会这么简单,稳了一手才交。C题,没有一眼秒就去看了D题,发现D题读不懂,才开始想C。发现不用那么复杂啊,直接贪心。比赛结束20分钟前一直在怼D,被卡坑点了好烦,E题读了下,找到
Alex Panda
·
2020-08-11 19:32
icpc题解
cf
【
CodeForce
s817F】MEX Queries
题目链接MEXQueries题目描述Youaregivenasetofintegernumbers,initiallyitisempty.Youshouldperform\(n\)queries.Therearethreedifferenttypesofqueries:\(1\l\r\)—Addallmissingnumbersfromtheinterval\([l, r]\)\(2\l\r\)—
oblivionl
·
2020-08-11 19:00
Codeforce
s Round #201 (Div. 1) A. Alice and Bob(数学)
题目地址:http://
codeforce
s.com/problemset/problem/346/A思路:最终无法再选择两个数,说明最后形成了一个公差为d的等差数列,即为d,d+d,d+2*d,……,
wang2147483647
·
2020-08-11 18:58
OJ_Codeforces
数学_杂
ACM
Codeforce
s Round 650E Clockwork Bomb(并查集)
题意:有两棵树,现在可以将第一棵树的边去除,然后在两个节点之间连一条新边使得第一棵树变成第二棵树,但是这种操作有一个限制条件,就是任何时刻,图中不能出现环,问操作数最少的步骤。思路:首先可以明确一点,就是一定存在某种操作序列,使得第一棵树变成第二棵树。考虑两棵树之间相同的边,可以把这些边包含的点缩成一个点考虑,要在这两个缩点后的图上进行操作,只需要每次从树的叶子节点开始改边就能保证满足题目中没有环
godspeedkaka
·
2020-08-11 18:43
程序设计竞赛
codeforce
6E 线段树+枚举
http://
codeforce
s.com/problemset/problem/6/EThereareseveraldaysleftbeforethefiftiethbirthdayofafamousBerland'swriterBerlbury.Inthisconnectionthelocallibrarydecidedtomakeanexpositionoftheworksofthisfam
life4711
·
2020-08-11 18:00
线段树&&数组数组
数据结构
Codeforce
s Round #201 (Div. 1)
题目链接A:a,b得到a-b,然后b-(a-b)。这个过程就像求gcd的过程,很容易想到最后所有的数肯定都是gcd(a1,a2,...an)的倍数。Code_AB:设dp[i][j][k]表示a串的i位置之前和b串的j位置之前的后缀是坏的串的前k个字符的最长的公共子序列的长度。然后转移需要处理出kmp的next数组进行转移。Code_BC:v[n]表示max(1,x数组中v[n]的约数-1),则d
JayYe
·
2020-08-11 18:15
ACM_数论and数学类
ACM_Codeforces
Codeforce
s Round #309 (Div. 1) B. Kyoya and Permutation 找规律
B.KyoyaandPermutationtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputLet’sdefinethepermutationoflengthnasanarrayp = [p1, p2, …, pn]consistingofndistinctinte
相知无悔
·
2020-08-11 18:10
cf
思考题
Codeforce
s Round #201 (Div. 2) A. Difference Row
A.DifferenceRowtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYouwanttoarrangenintegersa1, a2, ..., aninsomeorderinarow.Let'sdefinethevalueofanarrangementa
相知无悔
·
2020-08-11 18:10
cf
数论
Codeforce
s Round #201 (Div. 1) / 346A Alice and Bob (数论&想法题)
A.AliceandBobhttp://
codeforce
s.com/problemset/problem/346/Atimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputItissoboringinthesummerholiday
synapse7
·
2020-08-11 18:18
acm之路--数学
acm之路--好题/陷阱
数论
UVa
上一页
137
138
139
140
141
142
143
144
下一页
按字母分类:
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
其他