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
Div.2
Codeforces Round #720 (Div. 2)
CodeforcesRound#720(
Div.2
)A.NastiaandNearlyGoodNumbersinput353132711outputYES105060YES16939208YES28154182
满天星!
·
2021-05-08 12:42
codeforces
Codeforces Round #704 (Div. 2)-C. Maximum width-题解
目录CodeforcesRound#704(
Div.2
)-C.MaximumwidthProblemDescriptionInputOutputSampleInputSampleOnputNote题目大意题目分析解题思路
Tisfy
·
2021-02-23 20:31
CodeForces
题解
题解
Codeforces Round #704 (Div. 2)-B. Card Deck-题解
目录CodeforcesRound#704(
Div.2
)-B.CardDeckProblemDescriptionInputOutputSampleInputSampleOnputNote题目大意题目分析解题思路
Tisfy
·
2021-02-23 19:49
CodeForces
题解
题解
Codeforces 1492D - Genius‘s Gambit (构造)
CodeforcesRound#704(
Div.2
)D.Genius’sGambit题意要求构造出两个不包含前导0的二进制数字x,yx,yx,y,满足:x,yx,yx,y都具有aaa个000和bbb个111x
StelaYuri
·
2021-02-23 19:45
Codeforces
Codeforces 1485D - Multiples and Power Differences (构造)
CodeforcesRound#701(
Div.2
)D.MultiplesandPowerDifferences题意给定n∗mn*mn∗m的矩阵AAA,要求构造出一个n∗mn*mn∗m的矩阵BBB,满足
StelaYuri
·
2021-02-13 01:12
Codeforces
Codeforces 1485C - Floor and Mod (分块、数学)
CodeforcesRound#701(
Div.2
)C.FloorandMod题意给定x,yx,yx,y,询问当1≤a≤x,1≤b≤y1\lea\lex,\1\leb\ley1≤a≤x,1≤b≤y时,⌊
StelaYuri
·
2021-02-13 01:17
Codeforces
Codeforces Round #700 (Div. 2)-B. The Great Hero-题解-一行实现向上取整
CodeforcesRound#700(
Div.2
)-B.TheGreatHero传送门TimeLimit:2secondsMemoryLimit:512megabytesProblemDescriptionThegreatheroguardsthecountrywhereHomerlives.TheherohasattackpowerAAAandinitialhealthvalueBBB.The
Tisfy
·
2021-02-08 01:41
CodeForces
题解
Codeforces Round #700 (Div. 2)-A. Yet Another String Game-题解--三目运算符
CodeforcesRound#700(
Div.2
)-A.YetAnotherStringGame传送门TimeLimit:2secondsMemoryLimit:512megabytesProblemDescriptionHomerhastwofriendsAliceandBob.Bothofthemarestringfans.Oneday
Tisfy
·
2021-02-08 01:58
CodeForces
题解
【LGR-081】洛谷 1 月月赛 & EZEC R5
Div.2
题目:P7287「EZEC-5」魔法分析:做法一定是先多次整体加1,再多次整体x2。考虑到*2的次数是log级别的,可以先枚举*2的次数,然后再二分+1的次数,然后二分的judge里面写个判断最大连续子段和。代码:#includeusingnamespacestd;typedeflonglongll;//三年竞赛一场空,不开longlong见祖宗//typedef__int128lll;#defi
玛珈山大萌新
·
2021-02-02 22:53
二分
寒假cf补题
CodeforcesRound#695(
Div.2
)B.HillsAndValleys*1700,这题直接暴力,不需要dp,判断的时候注意下标#includeusingnamespacestd;constintN
nefu_zc
·
2021-01-23 16:20
codeforces
算法
Codeforces Round #696 (Div. 2)(A~D题解)
CodeforcesRound#696(
Div.2
)(A~C题解)——南昌理工学院ACM集训队题目链接:https://codeforces.ml/contest/1474A.PuzzleFromtheFutureInthe2022year
Jiu_ShuLQ
·
2021-01-20 11:35
题解
算法
二分法
数据结构
【洛谷 11 月月赛 I & MCOI Round 3
Div.2
】【数学】村国
题目背景Whatdidthisplayerdream?\texttt{Whatdidthisplayerdream?}Whatdidthisplayerdream?他梦见了什么?Thisplayerdreamedofsunlightandtrees.Offireandwater.\texttt{Thisplayerdreamedofsunlightandtrees.Offireandwater.}
SSL_ZZL
·
2020-11-03 20:13
洛谷
数学
【洛谷 11 月月赛 I & MCOI Round 3
Div.2
】【数学】正方
传送门题目背景MC中没有圆。所以小S和小Q和小U和小A和小R和小E喜欢Square。题目描述给定一个正方形,求有多少个正方形内的点满足与正方形四个顶点划分出来的四块面积的比为a:b:c:da:b:c:da:b:c:d。四个数不分顺序。比如如下图所示假设一个点E使得分成的四个三角形的面积之比为a:b:c:da:b:c:da:b:c:d,那么这个点E就符合要求。因为不分顺序,所以分出来的比是d:b:a
SSL_ZZL
·
2020-11-02 21:20
洛谷
数学
洛谷 [LGR-079]洛谷 11 月月赛 I & MCOI Round 3
Div.2
正方&村国
洛谷[LGR-079]洛谷11月月赛I&MCOIRound3Div.2正方&村国正方题目思路代码村国题目思路代码暴力(#2.cpp)正解(#2+.cpp)随机数生成(#2random.cpp)对拍控制程序(#2compare.cpp)括号金牌正方题目思路要让四个三角形面积比为a:b:c:d,就是要让E到四条边的距离比为a:b:c:d但是同时又要满足组成一个四边形,就要满足a,b,c,d中任意两个数
weixin_46304837
·
2020-11-01 19:35
题解
#
比赛(套题)
Codeforces Round #673 (Div. 2)
[CodeforcesRound#673(
Div.2
)]题目链接#A.Copy-paste思路:贪心的策略。
william4s
·
2020-09-28 16:00
Codeforces Round #672 (Div. 2)
CodeforcesRound#672(
Div.2
)A.CubesSorting#include//#defineintllusingnamespacestd;#pragmaGCCoptimize(2)
抠脚老騷
·
2020-09-25 21:19
cf
cf
acm
div2
c++
[Codeforces] #432
div.2
(Virtual)
==自觉太颓,模拟赛#432CodeforcesRound#432(
Div.2
,basedonIndiaHacksFinalRound2017)A-ArpaandaresearchinMexicanwave
weixin_30421809
·
2020-09-17 03:04
数据结构与算法
【Codeforces Round】 #432 (Div. 2) 题解
CodeforcesRound#432(
Div.2
,basedonIndiaHacksFinalRound2017)A.ArpaandaresearchinMexicanwavetimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputArpaisresearchingthe
baochui8729
·
2020-09-17 02:08
数据结构与算法
Codeforces #443
Div.2
C. Short Program 【位操作】
题目:http://codeforces.com/contest/879/problem/C题意:有一个函数,输入正整数x,经过n(n#include#include#include#include#include#include#include#include#includeusingnamespacestd;constintN=1e3+9;typedeflonglongLL;typedefpa
HARD_UNDERSTAND
·
2020-09-16 11:35
Codeforces
构造
洛谷11月月赛 III
Div.2
T3 基础博弈练习题
题目大意:YSGH和YGSH在打膈膜,YSGS在旁边围观。规则是这样的,先给定一个正整数mmm和一个nnn个数序列BBB,一开始有一个棋子在BBB的第一个位置,并将B1B_1B1减去111。此后双方轮流操作,每次操作,假设当前棋子在iii,可以把棋子移到一个位置jjj,满足j∈[i,min(i+m,n)]j\in[i,min(i+m,n)]j∈[i,min(i+m,n)]且Bj>0B_j>0Bj>
SSL_HJQ
·
2020-09-16 03:14
模拟赛
dfs序
博弈
2-sat作业
Hdu1814PeacefulCommission和平委员会codeforcesround#445(
div.2
)A–dzyloveschessboardpoj3683PriestJohn’sBusiestDayPoj3678KatuPuzzlePoj3207Ikki
LL_Sagiri
·
2020-09-15 23:19
2-sat
作业
Intel Code Challenge Elimination Round (Div.1 +
Div.2
, combined) C. Destroying Array
C.DestroyingArraytimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYouaregivenanarrayconsistingofnnon-negativeintegersa1, a2, ..., an.Youaregoingtodestroyinteg
weixin_30596343
·
2020-09-15 21:10
codeforces 845D Jury Meeting(
div.2
)
思路:票按时间升序排序正着扫一遍得到start[i],表示会议从第i天开始,到达的人的花费,大于初始化值表示人未到齐反着扫一遍得到end[i],表示第i天已回家的人的花费,大于初始化值表示人未全回枚举会议开始的那一天i,则ans=min(ans,start[i]+end[i+k+1])代码:#include#include#include#include#includeusingnamespace
spring_3_shine
·
2020-09-15 21:51
杂题
Codeforces Round #668 (Div. 2)A-C
CodeforcesRound#668(
Div.2
)A.PermutationForgery问题分析:就是要求找一个新的序列只需要吧整个序列倒着输出就符合要求AC代码:#include#include#
MaxVen
·
2020-09-15 12:45
CodeForces
Codeforces Round #666 (Div. 2)总结(A、B、C、D)
CodeforcesRound#666(
Div.2
)总结(A、B、C、D)上午LeetCode周赛自闭,晚上cf再次自闭…A:JugglingLetters题目链接题意n个字符串,每次操作可以选择两个字符串
serendipityLB
·
2020-09-15 02:09
CF
算法
c++
Codeforces Round #446 (Div. 2)
目录CodeforcesRound#446(
Div.2
)A.Greed题意题解B.Wrath题意题解代码C.Pride题意题解代码D.Gluttony题意题解证明代码E.Envy题意题解代码CodeforcesRound
weixin_30753873
·
2020-09-14 20:23
数据结构与算法
Codeforces Round #548 (Div. 2) D. Steps to One
题目链接:CodeforcesRound#548(
Div.2
)D.StepstoOne题目大意:一个数列,一开始是空的,每次往他最后一个位置随机的加上一个[1,m]范围内的数字,然后对当前数列所有的数字求
AAATK
·
2020-09-14 20:39
codeforces
# Codeforces Round #548 (Div. 2)C Edgy Trees
CodeforcesRound#548(
Div.2
)CEdgyTrees题目传送门Youaregivenatree(aconnectedundirectedgraphwithoutcycles)ofnvertices.Eachofthen
碧龗
·
2020-09-14 17:58
#
codeforces
Codeforces Round #497 (Div. 2)(暂时只有前三道)
CodeforcesRound#497(
Div.2
)A.Romajitimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVityahasjuststartedlearningBerlaneselanguage.ItisknownthatBerlaneseusesthe
onlysky_yy
·
2020-09-14 17:41
codeforce
做题笔记
codeforce
Codeforces Round #548 (Div. 2) (题解)
CodeforcesRound#548(
Div.2
)(题解)A.EvenSubstrings题目大意给出一条数字字符串,问其有多少数字子串使其代表的数字为偶数解题思路从前向后遍历,若第i未偶数,则答案增加
Flyppy_White
·
2020-09-14 17:19
套题题解
codeforce
Codeforces Round #548 (Div2)
CodeforcesRound548(
Div.2
)题目地址A.EvenSubstrings题目大意:大概就是让你找到所有的偶数,然后让你累加这个偶数及之前的所有数的个数#includeusingnamespacestd
橘子灬君
·
2020-09-14 17:51
ACM
Codeforces Round #665 (Div. 2)
目录CodeforcesRound#665(
Div.2
)A.DistanceandAxisB.TernarySequenceC.MereArrayD.MaximumDistributedTree参考CodeforcesRound
第25小时
·
2020-09-14 04:32
Codeforces Round #516 (Div. 2, by Moscow Team Olympiad)
CodeforcesRound#516(
Div.2
,byMoscowTeamOlympiad)Solved:3outof6Rank:1347A.Makeatriangle!难度:普及?数学题。。。
dmqqndlx85675
·
2020-09-14 03:49
[codeforces 1372D] Omkar and Circle 圆上区间动归
CodeforcesRound#655(
Div.2
)参与排名人数15842天天熬夜打比赛,身体吃不消,作了一个充满幸福感的决定,赛后第二天再刷[codeforces1372D]OmkarandCircle
mrcrack
·
2020-09-13 19:40
codeforces
Codeforces刷题
EducationalCodeforcesRound49(RatedforDiv.2)AIMTechRound5(rated,Div.1+Div.2)CodeforcesRound#542[AlexLopashevThanks-Round](
Div
dawu1461
·
2020-09-13 18:06
Codeforces Round #666(
Div.2
)A~D题题解
A.JugglingLetters题目传送门JugglingLetters题意给你n个字符串,字符串si中的任意一个字母可以插入到任意一个字符串(包括自己)的任意位置,问是否能构成n个完全相同的字符串。思路思路很清晰,只需每种字母的数量%n==0即可ACCode#includeusingnamespacestd;charch[1005];intmain(){intt;cin>>t;intnum[3
小新卖蜡笔orz
·
2020-09-13 18:58
Codeforces
Coffee Break 二分
CoffeeBreak二分Timelimit:1000msMemorylimit:262144kBSource:CodeforcesRound#509(
Div.2
)Tags:binarysearchdatastructuresgreedytwopointers
Dream Flying Eagle
·
2020-09-13 18:23
二分
Codeforces Round #509 (Div. 2) - C - Coffee Break(Set 二分)
CodeforcesRound#509(
Div.2
)-C-CoffeeBreak题意:有n个不同的休息时间,每天工作时间为m,任意两个休息点之间至少要隔d个时间,求最少工作天数,使得n个休息时间都休息了
vloai
·
2020-09-13 18:34
二分
Codeforces
STL
Codeforces Round #135 (Div. 2)-C. Color Stripe
CodeforcesRound#135(
Div.2
)-C.ColorStripe链接:http://codeforces.com/group/xrTA2IaQje/contest/249069/problem
寻找秀儿
·
2020-09-13 18:44
题
Codeforces Round #293 (
Div.2
) 小记
A.过pre,然后被hack了。而且到最后都没改过来--题意:给出两个串,s和t,保证字典序s#include#include#include#include#include#include#include#include#include#include#includeusingnamespacestd;typedeflonglongll;chars[110],t[110],a[110];intm
hadis_fukan
·
2020-09-12 23:58
codeforces
dp
codeforces 题解
CodeforcesRound#666(
Div.2
)题解查看题解EducationalCodeforcesRound94(RatedforDiv.2)查看题解CodeforcesRound#665(
Div
忘梦心
·
2020-09-12 08:15
codeforces
CF补题
CodeForce过题数/总题数ABCDEFGHEducationalCodeforcesRound64(RatedforDiv.2)1/7ACWA**CodeforcesRound#556(
Div.2
weixin_30262255
·
2020-09-12 07:21
Codeforces 目录
CodeforcesRound#277(
Div.2
)CodeforcesRound#276(
Div.2
)CodeforcesRound#275(
Div.2
)CodeforcesRound#274(
Div
CHEBEATER
·
2020-09-12 07:32
Codeforces补番
Codeforces跟番
CF 比赛记录
比赛记录:从round150开始CodeforcesRound#169(
Div.2
)搞完CodeforcesRound#165(Div.1)DE题解CodeforcesRound#164(
Div.2
)搞完
haha593572013
·
2020-09-12 06:17
Contests
算法总结
Codeforces
Codeforces Round #508 (Div. 2) (A,B,C,D)
CodeforcesRound#508(
Div.2
)A.Equality:Codeforces1038A.Equality(水题)CodeforcesRound#508(
Div.2
)B.Non-CoprimePartition
Ch_zaqdt
·
2020-09-12 05:27
CodeForces
CF Round #424(
Div.2
) D. Office Keys
首先要知道,对于任意的ai<=aj,有bi<=bj,(ai与bi配对,aj与bj配对),使得max(abs(ai-bi),abs(aj-bj))的最大值最小。分类讨论在坐标轴上画一下就知道了。所以可以二分答案,check函数如下booljudge(lllimit){intnum=0;intm=0;for(inti=0;i
zmh69695328
·
2020-09-11 18:21
Codeforces Round #538 (Div. 2) (CF1114)
CodeforcesRound#538(
Div.2
)(CF1114) 今天昨天晚上的cf打的非常惨(仅代表淮中最低水平 先是一路缓慢地才A掉B,C,然后就开始杠D。
weixin_30532369
·
2020-09-11 17:38
Codeforces Round #409
Div.2
(C. Voltage Keepsake)二分
C.VoltageKeepsaketimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYouhavendevicesthatyouwanttousesimultaneously.Thei-thdeviceusesaiunitsofpowerpersecond.This
吃货妍
·
2020-09-11 15:46
Codeforces
CF Round #424(
Div.2
) D. Office Keys 【二分||DP】
D.OfficeKeystimelimitpertest2secondsmemorylimitpertest256megabytesTherearenpeopleandkkeysonastraightline.Everypersonwantstogettotheofficewhichislocatedonthelineaswell.Todothat,heneedstoreachsomepointw
Dust_Heart
·
2020-09-11 15:12
二分查找
动态规划
Codeforces Round #504(
Div.2
)Problem D Array Restoration(线段树)
D.ArrayRestorationtimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputInitiallytherewasanarrayaaconsistingofnnintegers.Positionsinitarenumberedfrom11tonn.Exactly
Shili_Xu
·
2020-09-11 13:16
线段树
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他