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
#Codeforces
Codeforces
Round #624 (Div. 3) A—C
A-AddOddorSubtractEven(奇偶)将x变成y两种操作1,x可以加一个任意的奇数2,x可以减一个任意的偶数判断x与y的奇偶,以及他的大小关系即可代码:#include#include#include#include#include#include#include#include#include#includetypedeflonglongll;#definePllmake_pair
_Alexander
·
2020-08-25 05:41
Codeforces
Codeforces
Round #641 (Div. 1)
A-OracandLCM先对每一个数字进行质因数分解,记录,该质因数的次方和出现次数。如果出现了n-1次,那么答案有该质因数最小次方。如果出现了n次,那么答案拥有该质因数次小次方。#include#include#include#include#include#include#include#include#include#include#include#include//#include#inc
weixin_44019404
·
2020-08-25 05:10
规律
最短路
数学
Codeforces
Round #587 (Div. 3) C. White Sheet
题目http://
codeforces
.com/contest/1216/problem/C题意给你三个矩形的左下角坐标和右上角坐标。第一个矩形为白矩形,第二第三个为黑矩形。
皓洲
·
2020-08-25 05:05
Codeforces
补题库
CodeForces
- 266A——Stones on the Table
StonesontheTableTherearenstonesonthetableinarow,eachofthemcanbered,greenorblue.Counttheminimumnumberofstonestotakefromthetablesothatanytwoneighboringstoneshaddifferentcolors.Stonesinarowareconsideredn
螢塚
·
2020-08-25 05:33
ACM训练题
CodeForces
- 492A(第三期白银组比赛T2)
Timelimit1000msMemorylimit262144kBVanyagotncubes.Hedecidedtobuildapyramidfromthem.Vanyawantstobuildthepyramidasfollows:thetoplevelofthepyramidmustconsistof1cube,thesecondlevelmustconsistof1 + 2 = 3cub
糖贩
·
2020-08-25 05:33
Codeforces
Round #624 (Div. 3) A - Add Odd or Subtract Even
AddOddorSubtractEventimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYouaregiventwopositiveintegersaaandbb.Inonemove,youcanchangeaainthefollowingway:Choosean
菱形继承
·
2020-08-25 05:26
#
Codeforces
Codeforces
Round #491 (Div. 2)题解
A.Ifatfirstyoudon’tsucceed…timelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputEachstudenteagerlyawaitsthedayhewouldpasstheexamssuccessfully.Thus,Vasyawasreadyto
ssqsssq
·
2020-08-25 05:54
Codeforces
Frog Jumping
https://
codeforces
.com/contest/1077/problem/Atimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputAfrogiscurrentlyatthepoint0onacoordinateaxisOx.Itjumpsbythefollo
STZG
·
2020-08-25 05:10
#
C++
Codeforces
Round #587 (Div. 3)E2. Numerical Sequence (hard version)(二分)
题目:E2.NumericalSequence(hardversion)题意:一串数11212312341234512345612345671234567812345678912345678910……有q(qusingnamespacestd;typedeflonglongll;inlinellget_sum(llx){//从1~区间长度x的前x项和returnx*(x+1)/2;}inlinel
Mr.路痴
·
2020-08-25 05:37
算法与数据结构
Educational
Codeforces
Round 61 (Rated for Div. 2) F题解
FYouaregivenastringssoflengthnnconsistingoflowercaseLatinletters.Youmayapplysomeoperationstothisstring:inoneoperationyoucandeletesomecontiguoussubstringofthisstring,ifalllettersinthesubstringyoudelete
weixin_42754967
·
2020-08-25 05:05
dp
【
Codeforces
】1216B - Shooting
ProblemDescription:RecentlyVasyadecidedtoimprovehispistolshootingskills.Todayhiscoachofferedhimthefollowingexercise.Heplacedncansinarowonatable.Cansarenumberedfromlefttorightfrom1ton.Vasyahastoknockdo
喜欢ctrl的cxk
·
2020-08-25 05:31
C++
非降路径和Lindström–Gessel–Viennot定理(例题 牛客网暑期ACM多校训练营(第一场)A.Monotonic Matrix)(
codeforces
348D HDU 5852)
参考博客and图片来源https://blog.csdn.net/ftx456789/article/details/81132126非降路径就是给定一个起点(0,0)和终点(m,n),然后只能向右或者向上走。非降路径问题转换为组合数可以认为总共有n+m种选择,从中选出m步向右走,或者选择n步向上走,则可得路径的方案数为或。Lindström–Gessel–Viennot定理详见维基百科:http
Bug_Programmer
·
2020-08-25 05:54
学习随笔
Educational
Codeforces
Round 47 B Minimum Ternary String[字符串]
B.MinimumTernaryStringtimelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputYouaregivenaternarystring(itisastringwhichconsistsonlyofcharacters'0','1'and'2').Yo
Whowell
·
2020-08-25 05:35
字符串
codeforces
679 D. Bear and Chase
codeforces
679D.BearandChasehttp://blog.csdn.net/Ezereal/article/details/52743686DBearandChaseO(n^3)暴力首先
weixin_34341229
·
2020-08-25 05:40
Codeforces
321A
x[i]表示:从第一步到第i步为止,横坐标的位置;y[i]表示:从第一步到第i步为止,纵坐标的位置;设字符串S的长度为len;则有k*x[len]+x[i]=a;而且k*y[len]+y[i]=b;(这里下标从1开始),而且要注意的是k为非负整数,还要考虑x[len]或y[len]为0的情况。然后从1到len枚举i就可以了。附上代码:1#byStomach_ache2defmove(s,i):3i
weixin_34021089
·
2020-08-25 05:47
如何获取
codeforces
的完整数据?(玄学方法)
做cf题总是wa,wa了以后还没发看完整数据,好气哦!怎么办?这其实非常简单首先看一下wa的那个数据有什么特点比如说n=1111,m=1111那么就if(n==1111&&m==1111)getdata();getdata()是什么,其实就是把数据按行输出出来的程序因为cf的输入数据只能显示一部分,但是输出数据我们可以自我调整把输入数据进行分块处理,然后按行输出cf显示输出数据是可以显示20行的,
weixin_33800463
·
2020-08-25 05:01
CF492E Vanya and Field
题目描述:http://
codeforces
.com/problemset/problem/492/E(英文题)翻译不写了大家都能看懂。看到这道题的第一想法是啥……?暴力模拟?
weixin_30918415
·
2020-08-25 05:53
Codeforces
Round #477 (rated, Div. 2, based on VK Cup 2018 Round 3) C. Stairs and Elevators【二分查找】...
Intheyearof30XX30XXparticipantsofsomeworldprogrammingchampionshipliveinasinglelargehotel.Thehotelhasnnfloors.Eachfloorhasmmsectionswithasinglecorridorconnectingallofthem.Thesectionsareenumeratedfrom11
yuxiaoyu.
·
2020-08-25 05:21
Codeforces
Round #465 (Div. 2) Fifa and Fafa
C.FifaandFafatimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputFifaandFafaaresharingaflat.Fifalovesvideogamesandwantstodownloadanewsoccergame.Unfortunately,Faf
weixin_30737433
·
2020-08-25 05:44
Codeforces
题目
A-WatermelonCrawlinginprocess...CrawlingfailedTimeLimit:1000MSMemoryLimit:65536KB64bitIOFormat:%I64d&%I64uSubmitStatusDescriptionOnehotsummerdayPeteandhisfriendBillydecidedtobuyawatermelon.Theychoseth
weixin_30725315
·
2020-08-25 05:12
Codeforces
Round #277.5 (Div. 2)
题目链接:http://
codeforces
.com/contest/489A:SwapSortInthisproblemyourgoalistosortanarrayconsistingofnintegersinatmostnswaps.Forthegivenarrayfindthesequenceofswapsthatmakesthearraysortedinthenon-descending
weixin_30517001
·
2020-08-25 05:02
CodeForces
- 321E Ciel and Gondolas
DiscriptionFoxCielisintheAmusementPark.AndnowsheisinaqueueinfrontoftheFerriswheel.Therearenpeople(orfoxesmoreprecisely)inthequeue:weusefirstpeopletoreferoneattheheadofthequeue,andn-thpeopletoreferthel
weixin_30488313
·
2020-08-25 05:30
CodeForces
492A Vanya and Cubes
A.VanyaandCubestimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVanyagotncubes.Hedecidedtobuildapyramidfromthem.Vanyawantstobuildthepyramidasfollows:thetoplev
weixin_30480583
·
2020-08-25 05:59
网络流(费用流)
CodeForces
321B:Ciel and Duel
FoxCielisplayingacardgamewithherfriendJiro.Jirohasncards,eachonehastwoattributes:position(AttackorDefense)andstrength.FoxCielhasmcards,eachonehasthesetwoattributestoo.It'sknownthatpositionofallCiel'sc
weixin_30466039
·
2020-08-25 05:58
Codeforces
Round #277.5 (Div. 2) A,B,C,D,E,F题解
转载请注明出处:http://www.cnblogs.com/fraud/——byfraudA.SwapSorttimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputInthisproblemyourgoalistosortanarrayconsistingofninte
weixin_30293135
·
2020-08-25 04:49
Codeforces
Gym100952 D. Time to go back-杨辉三角处理组合数 (2015 HIAST Collegiate Programming Contest)...
D.Timetogobacktimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYouhavebeenoutofSyriaforalongtime,andyourecentlydecidedtocomeback.YourememberthatyouhaveMfriend
weixin_30263277
·
2020-08-25 04:17
如何获取
codeforces
的完整数据
推荐:如何获取
codeforces
的完整数据?
weixin_30240349
·
2020-08-25 04:46
codeforces
round477
codeforces
round477好久没打cf了,回来打一场,pp了4个题的fst了三个,掉了100多分。好像cf已经三连掉从接近2000掉到1700+了。老年选手打什么cf嘛。
wcy_1122
·
2020-08-25 04:45
题解
套题总结
贪心
构造
CodeForces
158B taxi
AfterthelessonsngroupsofschoolchildrenwentoutsideanddecidedtovisitPolycarpustocelebratehisbirthday.Weknowthatthei-thgroupconsistsofsifriends(1 ≤ si ≤ 4),andtheywanttogotoPolycarpustogether.Theydecided
ELL_COOL_A
·
2020-08-25 04:08
我的CF笔记
Codeforces
158B:Taxi
B.Taxitimelimitpertest3secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputAfterthelessonsngroupsofschoolchildrenwentoutsideanddecidedtovisitPolycarpustocelebratehisbirthday.Wek
_执念_
·
2020-08-25 04:07
Codeforces
Anya and Ghosts -
CodeForces
508 C 水题
AnyaandGhoststimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputAnyalovestowatchhorrormovies.Inthebesttraditionsofhorror,shewillbevisitedbymghoststonight.Anyah
提比-我有特殊的AC技巧
·
2020-08-25 04:24
CodeForces
水题
Codeforces
Round #280 (Div. 2) A B C
http://
codeforces
.com/contest/492A水题A.VanyaandCubestimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVanyagotncubes.Hedecidedtobuildapyramidfromthem.Vanyawants
mfcheer
·
2020-08-25 04:50
Codeforces
Round #280 (Div. 2)A B C
A-VanyaandCubes:#include#include#includeusingnamespacestd;typedef__int64ll;constintN=10005;lla[N];intmain(){a[0]=0;for(lli=1;in)ans--;printf("%d\n",ans);}return0;}B-VanyaandLanterns:#include#include#i
zxxxxzzz
·
2020-08-25 04:48
CF
Codeforces
258B. Little Elephant and Elections【数位DP,DFS】
B.LittleElephantandElectionstimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherehaverecentlybeenelectionsinthezoo.Overalltherewere7mainpoliticalparties:one
朽弈
·
2020-08-25 04:16
codeforces
dfs
动态规划
ACM之路
ACM
C++
dp
dfs
Codeforces
140E New Year Garland (dp + 容斥)
#include#include#include#include#include#include#include#include#includeusingnamespacestd;#defineinf0x3f3f3f3f#defineN5020#defineM1000020#defineLLlonglong#definemod1000000007#definels(i>1)#definelsonl
yamiedie_
·
2020-08-25 04:44
codeforces
组合计数
Codeforces
Round #243 (Div. 2) A,B,C(暴力枚举)
A.SerejaandMugs思路:大水杯的水是累计的..定定要改掉自己读题猴急的毛病!!CODE:#include#include#include#includeusingnamespacestd;intmain(){intn,m;while(~scanf("%d%d",&n,&m)){inta[105],s=0;for(inti=0;i#includeusingnamespacestd;int
HonniLin
·
2020-08-25 04:13
CF
Codeforces
Round #369 (Div. 2) B. Chris and Magic Square
B.ChrisandMagicSquaretimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputZStheCoderandChristheBaboonarrivedattheentranceofUdayland.Thereisan × nmagicgridontheen
神探特斯拉
·
2020-08-25 04:13
Codeforces
Round #222 (Div. 2)---A. Playing with Dice
PlayingwithDicetimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTwoplayersareplayingagame.Firsteachofthemwritesanintegerfrom1to6,andthenadiceisthrown.Theplaye
sxk_sxy
·
2020-08-25 04:12
暴力
Codeforces
Codeforces
Codeforces
Round #280 (Div. 2)---A. Vanya and Cubes (规律 + 暴力)
VanyaandCubestimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVanyagotncubes.Hedecidedtobuildapyramidfromthem.Vanyawantstobuildthepyramidasfollows:thetoplevel
sxk_sxy
·
2020-08-25 04:12
Codeforces
【
codeforces
】
Codeforces
Round #280 (Div. 2) 水题专场
传送门:【
codeforces
】
Codeforces
Round#280(Div.2)492A.VanyaandCubes找到最大的i使得1+2+3+……+i小于等于n,并且输出i。
poursoul
·
2020-08-25 04:11
题解
Codeforces
Round #280 (Div. 2)A. Vanya and Cubes(简单计算)
题目链接题意:搭积木,告诉你第i层需要i*(i+1)/2个,然后给你总数n个,问你可以搭几层题解:直接计算#defineCF#ifndefCF#include#include#include#include#include#include#include#include#else#include#endif//CFusingnamespacestd;#defineLLlonglong#define
_pkm_
·
2020-08-25 04:07
CF
模拟
CF 280A. Vanya and Cubes(div2)
http://
codeforces
.com/contest/492/problem/AVanyagotncubes.Hedecidedtobuildapyramidfromthem.Vanyawantstobuildthepyramidasfollows
bupt_xycr
·
2020-08-25 04:06
CodeForces
321 A - Ciel and Robot
【题目链接】:clickhere~~【题目大意】:一个robot机器人,可以根据给定的指令行动,给你四种指令,robot初始位置是(0,0),指令一出,robot会重复行动,判断能否在无限行动的情况下经过点(n,m)。【解题思路】其实仔细模拟一下,可以发现是有周期的,判断即可,见代码吧~~代码:#include#include#includeusingnamespacestd;constintN=
herongweiV
·
2020-08-25 04:06
【模拟/暴力/构造】
CodeForces
=====ACM=====
Codeforces
Round #221 (Div. 2) D. Maximum Submatrix 2 (思维题)
题目地址:
codeforces
221D这场是人生中做的第一场CF中的D题。(当时只做出来了A题。。)过年之际回顾了一下,就顺便看了几道D题。现在做CF的D题在比赛时还是做不出来。
Aerolite坠落
·
2020-08-25 04:34
瞎搞题
codeforces
852A
原题链接:http://
codeforces
.com/problemset/problem/852/A大致题意:给出一个数字,一种操作:在数位之间插入加号进行加法运算得到的结果作为新的数字。
蒟蒻111
·
2020-08-25 04:28
CF
杂题
构造
ACM-
Codeforces
Round #280 (Div. 2)
A.VanyaandCubes题意:有n个方块,要将他们堆起来,第一层要1个方块,第二层要1+2个方块,第三层要1+2+3个方块,等等,也就是第i层要1+...+i个方块,问n个方块最多能堆几层。分析:其实每一层需要的方块就是一个等差数列的前i项和,既然这样我们就可以算出每一层需要的方块数,上限也就是1000层,打好表之后,累加层数即可。源代码:#includeintdata[1005];intm
潜水的疯
·
2020-08-25 04:50
ACM-题集-BC
Codeforces
373B_Making Sequences is Fun_枚举长度。。。
B.MakingSequencesisFuntimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputWe'lldefineS(n)forpositiveintegernasfollows:thenumberofthen'sdigitsinthedecimalbase.Fo
CS_ChenLI
·
2020-08-25 04:18
acm_想法题
codeforces
23A. You're Given a String...
巨水的一道题,100的数据O(n^3)复杂度30ms过。蛋疼的是一开始读错题,substring字串认为是subsequence子序列。字串必须连续...没啥好说的#include#include#include#include#definemax(a,b)((a)>(b)?(a):(b))#defineINF1000000005chara[105];intmain(){scanf("%s",a)
double1994
·
2020-08-25 04:45
乱搞
Codeforces
492A Vanya and Cubes(水)
题目链接:
Codeforces
492AVanyaandCubes#include#include#includeusingnamespacestd;intmain(){intn,s=0;scanf("%
JeraKrs
·
2020-08-25 04:13
CF
GRADE:D
非常简单的签到题
Codeforces
425A Sereja and Swaps(暴力枚举)
求出每个区间的最大值,最后记录下所有区间的最大值代码:Bylab104_yifan,contest:
Codeforces
Round#243(Div.2),problem:(C)
lab104_yifan
·
2020-08-25 04:12
暴力-直接枚举
上一页
75
76
77
78
79
80
81
82
下一页
按字母分类:
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
其他