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 #292 (Div. 2), problem: (C) Drazil and Factorial 【水题? 阶乘乘积划分】
CodeforcesRound#292(
Div.2
),problem:©DrazilandFactorial题目大意让一个n位数经过函数变换后,不会出现0和1并且尽可能是最大值,然后瞒住F(x)=F(a
一百个Chocolate
·
2020-07-01 06:08
Codeforces✍
Codeforces Round #435 (Div. 2) C. Mahmoud and Ehab and the xor
CodeforcesRound#435(
Div.2
)C.
ZJLORD
·
2020-07-01 04:15
xor
Codeforces Round #457 (Div. 2) C. Jamie and Interesting Graph
CodeforcesRound#457(
Div.2
)C.JamieandInterestingGraphC.JamieandInterestingGraphtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputJamiehasrecentlyfoundundirecte
ZJLORD
·
2020-07-01 04:15
codeforse
Game With Array (构造) (Round #643
Div.2
)
传送门题意:需要你构造一个n个正整数元素的数组,必须满足数组元素总和为s,且存在一个k,(0n,若s-n+1>k的话就是存在答案数组的代码实现:#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include#include
S atur
·
2020-07-01 01:01
比赛&训练
Codeforces Round#497(
Div.2
)
CodeforcesRound#497(
Div.2
)A罗马字(Romaji)这道题比较水吧,直接暴力判断即可。其中“n”在里面一重循环特殊判断就行了。
ykhrg
·
2020-06-30 08:58
Codeforces Round #612 (Div. 2)
CodeforcesRound#612(
Div.2
)B题:题意:一横排是一张牌,如果满足任意三张牌可以组成的每一列有三张相同的牌或者有三张不同的牌就可以组成一副牌,问能组成多少副这样的牌,打乱顺序算一副
行走天涯的豆沙包
·
2020-06-29 07:36
codeforces
Codeforces Round #620 (Div. 2) ——E
CodeforcesRound#620(
Div.2
)——E题意:给x,y加一条边,问是否存在k条路径,可以来回走。
行走天涯的豆沙包
·
2020-06-29 07:36
图论
Educational Codeforces Round 35
Div.2
A. Nearest Minimums
Problemhttp://codeforces.com/contest/911/problem/AC++Code#include#includeusingnamespacestd;intmain(){intm=1000000000;inta;vectorvec;intn;scanf("%d",&n);for(inti=0;i
海天一树X
·
2020-06-28 17:15
喵哈哈村的魔法考试 Round #1 (
Div.2
) 题解&源码(A.水+暴力,B.dp+栈)
A.喵哈哈村的魔法石发布时间:2017年2月21日20:05最后更新:2017年2月21日20:06时间限制:1000ms内存限制:128M描述传说喵哈哈村有三种神奇的魔法石:第一种魔法石叫做人铁石,拥有A的能量;第二种魔法石叫做地冈石,拥有B的能量;而第三种,则是最神奇的天玄石,拥有无可比拟的C的能量!但是有一天,沈宝宝太调皮了,把一颗天玄石玩丢了……“这可玩大发了,这样我会被天行廖责备的。”沈
weixin_34240657
·
2020-06-28 14:27
Codeforces Round #626 (Div2)A&B&C
CodeforcesRound#626(
Div.2
,basedonMoscowOpenOlympiadinInformatics)A&B&CA题目链接A题链接题目大意签到题,就是给一串数字,找到他的一个合为偶数的子集
ErrethAkbe
·
2020-06-26 02:08
思维题
题解
寒假刷题记录
一、dp:1.CodeforcesRound#613(
Div.2
)D2.CodeforcesRound#612(Div.1)A题意:给出三个数分别代表红、绿、蓝,问给的数量是否能组成两两颜色不相邻的圆环
*Slime*
·
2020-06-26 01:24
训练赛
ACM超时问题(Codeforces Round #442 (Div. 2)D. Olya and Energy Drinks)
上次听学长说,关于标记数组最好换成布尔型的,节约空间时间,一直不以为然,直到做到CodeforcesRound#442(
Div.2
)D.OlyaandEnergyDrinks的时候一直在44组测试数据超时
UUUUh
·
2020-06-25 21:25
0x22深度优先搜索
Codeforces Round #514 (Div. 2)
CodeforcesRound#514(
Div.2
)A.Cashier#include#includeusingnamespacestd;intmain(){intn,L,a,pre=0,t,l;intcnt
烟波煮雨
·
2020-06-25 12:06
题目集
-
CF
Codeforces Round #622 (Div. 2)
CodeforcesRound#622(
Div.2
)A.FastFoodRestaurant题意有三种食物,每个客人每样最多拿一个,每个客人拿的组合不能相同,问最多能供应多少个客人题解每样最多拿一个,一共有
py_2017
·
2020-06-24 20:10
比赛专栏
Codeforces Round #638 (Div. 2)总结
CodeforcesRound#638(
Div.2
)总结当时做这一场比赛的时候还是很烦人的,做完第一个,开始做第二个,看题看了还没十分钟就停电了,很难受,刚刚补了第二个题感觉血亏,哎。
Hugh_White
·
2020-06-24 18:25
重走长征路---OI每周刷题记录——hzwer
.html2015年6月15日6月15日2015详见https://blog.csdn.net/mrcrack/article/details/87157602CodeforcesRound#158(
Div
mrcrack
·
2020-06-24 15:34
跟着大佬学算法
Codeforces Round #643 (Div. 2)
CodeforcesRound#643(
Div.2
)ASequencewithDigitsCF1355A按照题目的公式一样取出该数中每一位中的最大和最小相乘再加上该数就得到下一个数了,因为肯定会有最小为
_林小杰*
·
2020-06-24 02:11
CF刷题
CodeForces EDU 89
div.2
D
CodeForcesEDU89div.2D这个题其实不难,想一下就容易想到了,但是我没想到巨佬的原文constintN=5e5+5;constintM=1e7+7;intn;inta[N],b[N],c[N],L=0;intv[M];voidprime(intn){for(inti=2;i1?d[i]:-1);printf("\n");for(inti=0;i1?f[a[i]]:-1);retur
kylinholmes
·
2020-06-24 02:18
c++
程序设计算法
Codeforces Round #497 (Div. 2)
CodeforcesRound#497(
Div.2
)(java)ARomajiBTurntheRectanglesCReordertheArrayCodeforcesRound#497(
Div.2
)(java
江借时www
·
2020-06-23 21:01
Codeforces
acm
Codeforces Round #635 (Div. 2)
CodeforcesRound#635(
Div.2
).C题C.
ddddmax
·
2020-06-23 03:14
codeforces
Codeforces Round #499 (Div. 1) C. Border || Codeforces Round #499 (Div. 2) E.Border(数论/贝祖定理)
CodeforcesRound#499(Div.1)C.BorderCodeforcesRound#499(
Div.2
)E.Border(数论/贝祖定理)题意:给你n个数字(十进制),每个数字都可以使用无限次
Murphyc
·
2020-06-22 02:04
number
theory
codeforce
Codeforces Round #641 (Div. 2) A. Orac and Factors 找规律 --- 加因子
CodeforcesRound#641(
Div.2
)A.OracandFactors简要题意给定一个数n,求出进行k次操作后的结果.操作为:n加自己的最小的不为1的因子,得到一个新的数,之后的操作在这个新的数字的基础上再进行操作
DonoToT
·
2020-06-21 19:32
练习题
算法
c++
Codeforces Round #628 (Div. 2)] D-Ehab the Xorcist
CodeforcesRound#628(
Div.2
)]D-EhabtheXorcist题意:给定两个整数\(u,v(0\leu,v\le10^{18})\)让你构造一个长度\(\mathitn\)最小的数组
茄子Min
·
2020-06-19 16:00
Codeforces Round #639 (Div. 2).C. Hilbert's Hotel
CodeforcesRound#639(
Div.2
)题目大意有一个数组,对于任何数字k在数轴上的位置对n取模后都会映射与这个数组的某一个位置index,对于每一个位置都会有一个移动操作,问当k-》无限的时候
九品代码手
·
2020-05-07 09:00
Codeforces Round #637 (Div. 2) A~D
CodeforcesRound#637(
Div.2
)A~Dhttp://codeforces.com/contest/1341/A.NastyaandRice题意有\(n\)个范围在\([a-b,a+b
DOEMsy
·
2020-04-26 22:00
Codeforces Round #635 (Div. 2) A~D
CodeforcesRound#635(
Div.2
)A~Dhttps://codeforces.com/contest/1337/A.IchihimeandTriangle题意给定四个数字\(a,b,c
DOEMsy
·
2020-04-20 04:00
Codeforces Round #633 (
div.2
) B. Sorted Adjacent Differences
题目描述http://codeforces.com/contest/1339/problem/B有一个长度为\(n(3\len\le10^5)\)的整数序列\(a_1,a_2,...,a_n(-10^9\lea_i\le10^9)\)。将序列重排序使得\(|a_1-a_2|\le|a_2-a_3|\le...\le|a_{n-1}-a_n|\)。输出任意一种满足上述条件的排序方式。解题这里采用一种
DOEMsy
·
2020-04-13 12:00
Codeforces Round #633 (
div.2
) C. Powered Addition
题目描述http://codeforces.com/contest/1339/problem/C给定一个长度为\(n\)的无序数组,你可以在第\(x\)秒进行一次下面的操作。从数组选取任意个数字(也可以一个都不选),为他们全部都加上\(2^{x-1}\)。询问你最少可以用多少秒,使得数组非降序排列。解题最快策略首先简化一下问题,假设操作变成:第\(x\)秒,可以选取任意个数字,为他们全部都加上\(
DOEMsy
·
2020-04-13 12:00
Codeforces Round #632 (
div.2
) C. Eugene and an array
https://codeforces.ml/contest/1333/problem/C大概题意是规定和为0的数组为不合格数组,询问给定数组中共有多少个合格子数组。解题子数组的数量一个长度为\(n\)的数组\(a[0,n-1]\),选取\(i\)作为子数组的终点,那么我们可以选取\([0,i]\)中的任何一个\(j\)作为起点,这样可以得到子数组\(a[j,i]\),所以以\(i\)为终点的子数组
DOEMsy
·
2020-04-10 10:00
Codeforces Round #632 (Div. 2) 题解
目录CodeforcesRound#632(
Div.2
)A.LittleArtemB.KindAntonC.EugeneandanarrayD.Challengesinschool№41E.Roadto1600F.KateandimperfectionCodeforcesRound
st1vdy
·
2020-04-09 02:00
Codeforces Round #458
Div.2
C. Travelling Salesman and Special Numbers
一、题目http://codeforces.com/contest/914/problem/C二、分析(一)reduce规则例1:13-->1,需要三步:十进制二进制1的个数131101331122101例2:1023-->1,需要3步十进制二进制1的个数102311111111111010101022101例3:255-->1,需要4步十进制二进制1的个数25511111117711133112
海天一树X
·
2020-04-05 16:39
Codeforces Round #630 (Div. 2) 部分题解
目录CodeforcesRound#630(
Div.2
)A.ExercisingWalkB.CompositeColoringC.K-CompleteWordD.WalkonMatrixE.HeightAlltheSameCodeforcesRound
st1vdy
·
2020-04-01 00:00
Codeforces Round #628 (Div. 2) 题解
目录CodeforcesRound#628(
Div.2
)A.EhAbAnDgCdB.CopyCopyCopyCopyCopyC.EhabandPath-eticMEXsD.EhabtheXorcistE.Ehab'sREALNumberTheoryProblemF.Ehab'sLastTheoremCodeforcesRound
st1vdy
·
2020-03-15 10:00
CUC-SUMMER-CONTEST-2-B
B-SpiderManCodeforcesRound#366(
Div.2
)PeterParkerwantstoplayagamewithDr.Octopus.Thegameisaboutcycles.Cycleisasequenceofvertices
Nioge
·
2020-03-11 03:32
CUC-SUMMER-CONTEST-2-C
C-Arpa’sobviousproblemandMehrdad’sterriblesolutionCodeforcesRound#383(
Div.2
)TherearesomebeautifulgirlsinArpa
Nioge
·
2020-03-10 11:43
CUC-SUMMER-CONTEST-2-D
D-Arpa'sloudOwfandMehrdad'sevilplanCodeforcesRound#383(
Div.2
)Asyouhavenoticed,therearelovelygirlsinArpa
Nioge
·
2020-03-07 19:13
CUC-SUMMER-CONTEST-2-F
F-k-TreeCodeforcesRound#247(
Div.2
)QuiterecentlyacreativestudentLeshahadalectureontrees.AfterthelectureLeshawasinspiredandcameupwiththetreeofhisownwhichhecalledak-tree.Ak-treeisaninfiniterootedtreewher
Nioge
·
2020-02-20 01:13
CUC-SUMMER-9-C
C-LongtailHedgehogCodeforcesRound#338(
Div.2
)ThisChristmasSantagaveMashaamagicpictureandapencil.Thepictureconsistsofnpointsconnectedbymsegments
Nioge
·
2020-02-18 20:08
【LGR-069】洛谷 2 月月赛 II & EE Round 2
Div.2
A-C题解
洛谷2月月赛前三题题解。T1:由最优性可知,我们每次一定要选出现最多次的字符进行操作,因此我们只需要找原始字符串中出现次数最多的字符,不停对其进行变换,直到其长度符合要求。注意数据类型问题,由于变换的时候可能会超出$unsignedlonglong$的上限,因此我们需要判断其是否溢出。1#include2#include3#include4#include5#defineintunsignedlo
szmssf
·
2020-02-16 01:00
CUC-SUMMER-CONTEST-2-E
E-Arpa’shardexamandMehrdad’snaivecheatCodeforcesRound#383(
Div.2
)ThereexistsanislandcalledArpa’sland,somebeautifulgirlslivethere
Nioge
·
2020-02-13 23:35
B. Azamon Web Services(贪心)
CodeforcesRound#607(
Div.2
)https://codeforces.com/problemset/problem/1281/B题意:每个测试用例给定两个字符串chr1,chr2,若按字典序排序前者小于后者则直接输出
yyer
·
2020-02-11 17:00
Codeforces Round #616 (Div. 2)解题报告
CodeforcesRound#616(
Div.2
)解题报告A.EvenButNotEven找两个奇数就行了。
zhaoxiaoyun
·
2020-02-04 03:00
Codeforces Round #602 (Div. 2, based on Technocup 2020 Elimination Round 3) 解题报告(A~F)(E/F(hard)无)
CodeforcesRound#602(
Div.2
,basedonTechnocup2020EliminationRound3)解题报告(A~F)(E/F(hard)无)A:MathProblem目标区间右端点一定是所有给定区间左端点的最大值
zhaoxiaoyun
·
2020-01-31 17:00
Codeforces Round #568
Div.2
A.Ropewalkers#includeusingnamespacestd;intnum[5];intd;intmain(){for(inti=0;iusingnamespacestd;intT;strings,t;boolisSubsequence(strings,stringt){intls=s.length(),lt=t.length();if(!ls)returntrue;if(!lt&
丧心病狂工科女
·
2020-01-28 15:00
Codeforces #614
div.2
(A-E)
AConneRandtheA.R.C.Markland-N1#include2usingnamespacestd;3#definelllonglong4#defineinc(i,l,r)for(inti=l;i>t;10while(t--){11cin>>n>>s>>k;12mapm;13inc(i,1,k){14cin>>x;15m[x]=1;16}17inc(del,0,k){18if((s+
heavyshower
·
2020-01-20 11:00
Codeforces Round #612 (Div. 2) C. Garland 动态规划
CodeforcesRound#612(
Div.2
)C.Garland动态规划题目链接:https://codeforces.com/contest/1287/problem/CC.Garlandtimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVadimlovesd
茄子Min
·
2020-01-18 16:00
Codeforces Round #533(
div.2
)解题报告
CodeforcesRound#533(
div.2
)解题报告A.SalemandSticks题意:给定一个序列长度为n,你可以对每个数字加或者减。每次加减的代价是数字大小变化之差。
zhaoxiaoyun
·
2020-01-18 01:00
Dr. Evil Underscores
D-Dr.EvilUnderscores参考:CodeforcesRound#613(
Div.2
)Editorial其实比赛的时候就已经想到了基本上一样的解法,可是最后还是没有写出来...具体思路就是分治
CADCADCAD
·
2020-01-11 11:00
Codeforces Round #609 (Div. 2)前五题题解
CodeforcesRound#609(
Div.2
)前五题题解补题补题……C题写挂了好几个次,最后一题看了好久题解才懂……我太迟钝了……然后因为longlong调了半个小时……A.Equation题目大意
Angel_Kanade
·
2020-01-10 20:00
Codeforces Round #610 (Div. 2) 前5题题解
CodeforcesRound#610(
Div.2
)前5题题解感觉这场比赛质量不错,出题人真的良心,样例数据给那么详细。
nblyz2003
·
2020-01-10 08:00
上一页
9
10
11
12
13
14
15
16
下一页
按字母分类:
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
其他