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
637(
Div.2
)D.Nastya and Scoreboard
题目描述Denis,whomanagedtobuyflowersandsweets(youwilllearnaboutthisstoryinthenexttask),wenttoameetingwithNastyatoinvitehertobecomeacouple.Andso,theysittogetherinacafe,chatting.Denisfinallyofferstobethemto
li_wen_zhuo
·
2020-07-04 21:02
Codeforces
Codeforces Round #638 (Div. 2)
CodeforcesRound#638(
Div.2
)CF1348AA-PhoenixandBalance给一个数n即你有2、4、8、16…2^n这些数,把他分成两堆保证和的差值最很容易知道前n-1项和小于第
_林小杰*
·
2020-07-04 20:59
CF刷题
Codeforces Round #345 (Div. 2) [Codeforces651]
此处有目录↑CodeforcesRound#345(
Div.2
):http://codeforces.com/contest/651A.Joysticks(贪心)timelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputFriendsaregoingtoplayconsole
idealism_xxm
·
2020-07-04 18:23
Codeforces
贪心
模拟
Codeforces Round #632 (Div. 2)C. D.F题解
#CodeforcesRound#632(
Div.2
)C.D.F题解#比赛链接C-Eugeneandanarray题意:求一个array的有多少subarray是good的,subarray定义为子串,
gzr2018
·
2020-07-04 17:24
Codeforces Round #545 (Div. 2) 题解
CodeforcesRound#545(
Div.2
)题目总链接:https://codeforces.com/contest/1138A.SushiforTwo题意:给出n个数,只有1或者2,要求找出最长的连续的
dft539533
·
2020-07-04 14:28
codeforces比赛记录
CF比赛记录CodeforcesRound#649(
Div.2
)Jun/13/202023:05UTC+8EducationalCodeforcesRound89(RatedforDiv.2)Jun/11
cheng__yu_
·
2020-07-04 13:03
比赛
CF比赛
Codeforces Round 534 (Div. 2)题解
CodeforcesRound#534(
Div.2
)题解A.Splittingintodigits题目大意将一个数字分成几部分,几部分求和既是原数,问如何分可以使得分出来的各个数之间的差值尽可能小解题思路将
Flyppy_White
·
2020-07-04 11:33
codeforce
套题题解
Codeforces Round #542 [Alex Lopashev Thanks-Round] (Div. 2)题解
CodeforcesRound#542[AlexLopashevThanks-Round](
Div.2
)题解A.BePositive题目大意给出一个数组,让所有的数除去一个数,使得数组中正数的数量大于数组数量总数的一半
Flyppy_White
·
2020-07-04 11:33
套题题解
codeforce
Codeforces Round #194 (Div. 2) 题解
CodeforcesRound#194(
Div.2
)题解个人体会:第3场CF,3题。前两题读懂题意都比较简单,第3题列出前几项找下规律就好了。
XDU_Truth
·
2020-07-04 09:58
#P
Maximum Subsequence Value (二进制 / 思维) (Round #648
Div.2
)
传送门题意:在给定的序列中选择一个子序列,若子序列里有k个数,当至少有max(1,k-2)个数在二进制第i位上为1的时候,对答案就有2^i贡献,试问最大的答案是多少。思路:若选定了k个数,那么假设有>=k-2个数包含二进制的第i位。那现在只选择3个数,若原来有>=k-2个数包含二进制的第i位,那么这三个数种也至少有一个数包含这一位二进制,因此(枚举找到特定的)三个数就能找到最优解。代码实现:#in
S atur
·
2020-07-04 08:30
二进制
Codeforces Round #639 (Div. 2)萌新题解
CodeforcesRound#639(
Div.2
)萌新题解Becauseofthelongqueue,theroundisunrated.I’mtryingtoinvestigateit.Justsolveproblemsforfun.Ihopeyoulikedthem.Mike
琦子k
·
2020-07-04 07:13
Codeforces Round #648 (Div. 2) D. Solve The Maze
CodeforcesRound#648(
Div.2
)D.SolveTheMaze标签:BFS.题意:给一个迷宫,‘#’表示墙,‘G’表示好人,’B‘表示坏人,终点在(n,m)。
琦子k
·
2020-07-04 07:43
Codeforces Round #638 (Div. 2) 萌新题解
CodeforcesRound#638(
Div.2
)萌新题解~出题人的官方题解~这次的A-D都是贪心哇!
琦子k
·
2020-07-04 07:42
Codeforces Round #480 (Div. 2)
Contests链接:CodeforcesRound#480(
Div.2
)过题数:3排名:804/9913A.LinksandPearls题意给定一个只包含-和o的字符串,-表示项链上的链,o表示项链上的珍珠
Dmaxiya
·
2020-07-04 04:04
Codeforces
Codeforces Round #619 (Div. 2)
CodeforcesRound#619(
Div.2
)https://codeforces.com/contest/1301A-ThreeStrings思路:只要a[i],b[i]中的一个和c[i]相等,
xing_mo
·
2020-07-04 03:55
CF
Codeforces Round #596 (Div. 2)D. Power Products
CodeforcesRound#596(
Div.2
)D.PowerProductshttp://codeforces.com/contest/1247/problem/D题意:给出一串序列和k,找到满足
w_uxidixi
·
2020-07-04 02:21
Codeforces
Codeforces Round #596 (Div. 2)C. p-binary
CodeforcesRound#596(
Div.2
)C.p-binaryhttp://codeforces.com/contest/1247/problem/C题意:给出一个n,p,找到最小的需要的数字
w_uxidixi
·
2020-07-04 02:20
Codeforces
【暴力+剪枝】输出表演方案 Codeforces Round #545 (Div. 2) B. Circus
CodeforcesRound#545(
Div.2
)B.Circushttp://codeforces.com/contest/1138/problem/B给你两行01串,长度均为n(nusingnamespacestd
Cherry_0525
·
2020-07-04 01:27
暴力大法好
【离散化处理】 Codeforces Round #545 (Div. 2) C. Skyscrapers
CodeforcesRound#545(
Div.2
)C.Skyscrapershttp://codeforces.com/contest/1138/problem/C给你一个n*m的矩阵问你以每一个位置作为交叉点
Cherry_0525
·
2020-07-04 01:26
离散化
Codeforces Round #632 (Div. 2) C. Eugene and an array
CodeforcesRound#632(
Div.2
)C.Eugeneandanarray题目链接:https://codeforces.ml/contest/1333/problem/C题意:给出一个长度为
stduy_ing
·
2020-07-04 00:28
Codeforces Round #633 (
Div.2
) problem (A,B,C) AC code and train of thought
A.FillingDiamondsYouhaveintegern.Calculatehowmanywaysaretheretofullycoverbelt-likeareaof4n−2triangleswithdiamondshapes.Diamondshapeconsistsoftwotriangles.Youcanmove,rotateorfliptheshape,butyoucannotsc
MuChen7
·
2020-07-02 16:31
题解
C. Ehab and a 2-operation task (cf)
CodeforcesRound#525(
Div.2
)FinishedC.Ehabanda2-operationtasktimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYou'regivenanarrayaaoflengthnn.Youcanperformthefol
nucleare
·
2020-07-02 13:23
技巧
codeforces
思维
[codeforces 1370D] Odd-Even Subsequence 二分查找+跳跃取数
CodeforcesRound#651(
Div.2
)参与排名人数14559[codeforces1370D]Odd-EvenSubsequence二分查找+跳跃取数总目录详见https://blog.csdn.net
mrcrack
·
2020-07-02 12:44
codeforces
[codeforces 1362D] Johnny and Contribution 验证拓扑排序
CodeforcesRound#647(
Div.2
)-Thanks,AlgoMuse!
mrcrack
·
2020-07-02 12:43
codeforces
这些年打过的比赛codeforces
这些年打过的比赛codeforcesCodeforcesRound#654(
Div.2
)参与排名人数14349本场比赛主要心思放在观摩高手如何打比赛,发现初中生真的很厉害。
mrcrack
·
2020-07-02 12:11
codeforces
CF #643
div.2
ABDE
一个月没打cf了,难得打一次,结果D被fst了,又掉分cf太卡了不想进,因此以下代码仅供参考,不保证acA题SequencewithDigits就是给你一个数n,问你执行k-1次操作后变成多少。操作:找到n中最大的数和最小的数,n加上这个数。例如487487487,第一次操作:487+(4×8)=519487+(4\times8)=519487+(4×8)=519,第二次操作:519+(1×9)=
hesorchen
·
2020-07-02 02:52
#
codeforces题解
#
三分
哈希-Codeforces Round #578 (Div. 2)-E.Compress Words
CodeforcesRound#578(
Div.2
)-E.CompressWords思路给你一个英文句子n个字符串,n#definelllonglongusingnamespacestd;constintmaxn
多行不译必自闭
·
2020-07-01 21:46
哈希
Codeforces Round #457(
Div.2
)Problem E Jamie and Tree(DFS序+倍增算法+LCA+树状数组)
E.JamieandTreetimelimitpertest2.5secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputToyoursurprise,Jamieisthefinalboss!Ehehehe.Jamiehasgivenyouatreewithnvertices,numberedfrom1t
Shili_Xu
·
2020-07-01 13:19
树状数组
LCA
Maximum Sum on Even Positions (思维 / 最大子段和)(Round 90 Rated for
Div.2
)
传送门题意:现有一个数组a,你可以翻转一次任意一段子序列,以使所有偶数位(下标从0开始)的和max。思路:显然选择的序列必须是偶数个数,因为奇数个数翻转后根本没有意义(在实现代码时下标可以从1开始方便处理,取奇数位的和便可);并先统计所有奇数位的和ans,再从前往后遍历先处理偶数位i与i-1的交换情况;不断统计交换后的贡献值,若贡献值为负便舍弃前面的子段(就像dp思维一样),最后统计所有贡献值的m
S atur
·
2020-07-01 13:13
比赛&训练
RationalLee (思维) (Round #652
Div.2
)
传送门题意:给你n个数,有m个朋友,每个朋友要拿其中w[i]个数,每个人获得的幸福值是他拿的数的最大值与最小值的和,如果只有一个数最大值最小值都是它,让你求出所有人能获得的最大幸福值是多少?思路:由于每个朋友的幸福值是其得到的max和min的和,那么就要保证其最大值经量大将a[]和w[]都先按升序排列,将依次最大的a[i]分给w值为1的朋友,这样他的幸福值就是max*2,贡献值增长最快。将所有w[
S atur
·
2020-07-01 13:13
比赛&训练
Pluses and Minuses (思维 / 模拟) (Round 90 Rated for
Div.2
)
传送门题意:实现以下伪代码分析以上伪代码得两种情况:当cur0时会跑完内部循环,最后终止程序思路:分析易得若最开始cur始终>0则万事大吉,但若过程中遇见n次cur#include#include#include#include#include#include#include#include#include#include#include#include#include#include#inclu
S atur
·
2020-07-01 13:13
比赛&训练
Number Game (数学 / 博弈) (Round #651
Div.2
)
传送门题意:Ashishgup与FastestFinger比赛,给出一个初值n,可进行一下操作:如果n>1,便n–除以一个大于1并且必须是奇数的因数,可以除以自己,如果自己是奇数的话最先不能动的输掉比赛,输出游戏最后的赢家。思路:因为A先操作,若n为奇数,除以自己,A赢。若n为偶数,只要有一个因数是奇数,那么一定存在最大的奇因数,除以这个最大的,一定变为偶数,若不为2,对手减一后,则A一定赢。代码
S atur
·
2020-07-01 13:13
数学
比赛&训练
Codeforces Round #601 (Div. 2)补题
CodeforcesRound#601(
Div.2
)官方题解本场关键词暴力、乱搞、模拟、贪心、出锅A.ChangingVolume#includeusingnamespacestd;typedeflonglongll
Miaplacidus
·
2020-07-01 11:50
OJ上的做题经验
Codeforces Round #589 (Div. 2)
CodeforcesRound#589(
Div.2
)A刚开始以为有什么奇妙解法,想了3min后发现可以直接暴力搜。(毕竟就个DIV2的A)B模拟它的操作即可。
rqdmap
·
2020-07-01 10:02
ACM
Codeforces Round #616 (Div. 2) (A-D)
CodeforcesRound#616(
Div.2
)A最开始写挂了,打算从后往前截断到第一个奇数,再从前往后截断到数码和为偶数,不过并通过不了test2。
rqdmap
·
2020-07-01 10:30
ACM
Codeforces Round #635 (Div. 2)
CodeforcesRound#635(
Div.2
)A.IchihimeandTriangle题目链接题目大意找到满足三角形边长关系的x,y,zx,y,zx,y,z使得x,y,zx,y,zx,y,z满足
Eric C.H.Xia
·
2020-07-01 09:45
CF
Codeforces Round #482 (Div. 2)
Contests链接:CodeforcesRound#482(
Div.2
)过题数:2排名:843/10089A.Pizza,Pizza,Pizza!!!题意用最少的线将一个圆平分成n+1n+1块。
Dmaxiya
·
2020-07-01 08:50
Codeforces
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
上一页
8
9
10
11
12
13
14
15
下一页
按字母分类:
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
其他