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
【洛谷 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
线段树
Codeforces Round #664 (Div. 2) ABC 题解
CodeforcesRound#664(
Div.2
)time:2020/08/14链接A.BoboniuLikestoColorBallstimelimitpertest:1secondmemorylimitpertest
六月陌
·
2020-09-10 22:04
codeforces
C/C++
Codeforces Round #658 (Div. 2)
CodeforcesRound#658(
Div.2
)A.CommonSubsequence题意:找两个字符串最短的公共子序列题解:用桶排序记录有是否出现过,出现过就输出代码:#include#includeusingnamespacestd
R_emembers
·
2020-08-26 15:43
Codefoces
题解
算法
Codeforces Round #646 (Div. 2)
CodeforcesRound#646(
Div.2
)题目链接:CodeforcesRound#646(
Div.2
)A.OddSelection代码#includeusingnamespacestd;intmain
R_emembers
·
2020-08-26 15:42
Codefoces
题解
Codeforces Round #665 (Div. 2)
CodeforcesRound#665(
Div.2
)A-DistanceandAxis#includeusingnamespacestd;typedeflonglongll;constintMAX=2e5
抠脚老騷
·
2020-08-25 05:42
C++
acm
cf
算法
acm竞赛
c++
【codeforces】Codeforces Round #280 (Div. 2) 水题专场
传送门:【codeforces】CodeforcesRound#280(
Div.2
)492A.VanyaandCubes找到最大的i使得1+2+3+……+i小于等于n,并且输出i。
poursoul
·
2020-08-25 04:11
题解
Codeforces 425A Sereja and Swaps(暴力枚举)
求出每个区间的最大值,最后记录下所有区间的最大值代码:Bylab104_yifan,contest:CodeforcesRound#243(
Div.2
),problem:(C)
lab104_yifan
·
2020-08-25 04:12
暴力-直接枚举
[codeforces 1401A] Distance and Axis 涉及奇偶的讨论
CodeforcesRound#665(
Div.2
)参与排名人数13763[codeforces1401A]DistanceandAxis涉及奇偶的讨论总目录详见https://blog.csdn.net
mrcrack
·
2020-08-25 03:57
codeforces
Codeforces Round #641 (Div. 2) C
CodeforcesRound#641(
Div.2
)C数论很有意思的一道题,有一说一–>LinkC.OracandLCM题意:给你一个长为n的数串,它们之间两两取lcm得到一个新的数串,再取总gcd,求所得答案思路
Sand_IN_MysterieS
·
2020-08-25 03:13
Codeforces
数论
637(
Div.2
)B. Nastya and Door(前缀和)
题目描述OnFebruary14,DenisdecidedtogiveaValentinetoNastyaanddidnotcomeupwithanythingbetterthantodrawahugeredheartonthedoorofthelengthk(k≥3).Nastyawasveryconfusedbythispresent,soshedecidedtobreakthedoor,th
li_wen_zhuo
·
2020-08-25 03:59
Codeforces
#411
Div.2
D. Minimum number of steps
【题意】给出一个包含a和b的字符串,在串中碰到ab就将其变为bba,求最小变化次数。【题解】贪心思想,考虑从后往前处理得解最优,依次分别处理a和b即可。每次处理a相当于后面b数量倍增。Wehaveastringofletters‘a’and‘b’.Wewanttoperformsomeoperationsonit.Oneachstepwechooseoneofsubstrings“ab”inthe
Joovo
·
2020-08-25 02:24
思维
水题
※
acm
和算法
Codeforces Round #541(
Div.2
) C. Birthday解题报告(双端队列)
题目链接C.Birthdaytimelimitpertest:1secondmemorylimitpertest:256megabytesinput:standardinputoutput:standardoutputCowboyVladhasabirthdaytoday!Therearenchildrenwhocametothecelebration.InordertogreetVlad,the
醒者
·
2020-08-25 02:56
CodeForces Round #288
Div.2
A.PashaandPixels(水题暴力)题意:有一个n×m的矩阵,最开始所有的格子都是白色的。一个人按照某种顺序将格子涂成黑的,如果某个格子已经是黑的则忽略。在涂色的过程中如果出现了2×2的全黑小方阵,则游戏失败。输出游戏是在哪一步失败的,或者没有失败。分析:直接用一个矩阵模拟即可,每次给一个格子涂完色,判断一下包含这个格子的四个2×2方阵是否全威黑色,注意坐标不要出界。1#include2#
weixin_30678821
·
2020-08-25 02:43
上一页
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
其他