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 #201(
Div.2
)
https://codeforces.com/contest/347ZR的作业,来填填坑A.DifferenceRow睿智题,贪心最后面的最大,最前面的最小,中间排序就行了//byBalloons#include#include#include#include#definemprmake_pair#definedebug()puts("okkkkkkkk")#definerep(i,a,b)for
DenyTian
·
2020-08-11 15:02
【解题报告】
【比赛解题报告】
2019年三月刷题记录
CodeforcesRound#545(
Div.2
)a题:这种一个一个刷的,thisin,prein的这种,要注意:1.到最后一个thisin会退出循环,最后一个thisin没有处理。
owojiecao
·
2020-08-11 12:49
刷题quq
acm
noip
算法
floyd
最小环
Codeforces Round #662 (Div. 2)A-D题解
CodeforcesRound#662(
Div.2
)A-D题解//写于大号rating值2184/2184,小号rating值1881/1881//本场拿小号打的,名次在div2选手排78,rating
StandNotAlone
·
2020-08-11 05:43
codeforces
算法
Rainbow Dash, Fluttershy and Chess Coloring (思维) (Round #662
div.2
)
传送门题意:有n*n的方格棋盘,现有黄蓝两种颜色,一圈一圈的图色,使得上一圈与下一圈相邻。试问总共最少要图多少钱?思路:嗐,太菜了,被这个题卡了好久,还是队友先写出来。答案就是n/2+1。代码实现:#include#defineendl'\n'#definenullNULL#definelllonglong#defineintlonglong#definepiipair#definelowbit(
S atur
·
2020-08-11 05:49
比赛&训练
GZHU18级第三次周赛——白银等级 A - Problem A CodeForces - 439A
*Timelimit:1000msMemorylimit:262144kBSource:CodeforcesRound#251(
Div.2
)Tags:greedyimplementation1100Editorial
辣条。
·
2020-08-11 00:54
ACM第三次周赛
2019 ACM训练计划——( 每天5题 ) 训练计划18【循环数列 + 模拟】
ACodeforcesRound#273(
Div.2
),problem:©TableDecorations题目大意有红绿蓝三种颜色,然后要每张桌子上颜色不能完全相同,求满足这样条件的最大桌子数题解先对颜色数目进行从小到大排序
一百个Chocolate
·
2020-08-11 00:29
Codeforces✍
Codeforces Round #648 (Div. 2) A-F
CodeforcesRound#648(
Div.2
)A#includeusingnamespacestd;typedeflonglongll;#defineIOios::sync_with_stdio(
Pikachu_Yj
·
2020-08-10 20:15
codeforces
Codeforces Round #604 (
Div.2
)
CodeforcesRound#604(
Div.2
)2019/12/522:35——2019/12/600:35CodeforcesRound#604(
Div.2
)A.BeautifulStringtimelimitpertest
六月陌
·
2020-08-10 19:15
C/C++
codeforces
Codeforces Round #402 (Div. 2) C:Dishonest Sellers
CodeforcesRound#402(
Div.2
)C:DishonestSellers#include#include#include#include#include#includeusingnamespacestd
请_坚持思考
·
2020-08-10 17:13
coderforce
Codeforces Round #401 (Div. 2)C. Alyona and Spreadsheet
CodeforcesRound#401(
Div.2
)C.AlyonaandSpreadsheet看代码一种新的思想dp以每行#includeusingnamespacestd;constintMAXN=
请_坚持思考
·
2020-08-10 17:12
coderforce
Codeforces Round #654 (
Div.2
)E1 Asterism
#include#include#includeusingnamespacestd;constintmaxn=100010;longlonga[maxn];vectorv;longlongn,p;longlongf(longlongx){longlongans=1;longlongr=n;for(longlongi=n-1;i>=0;i--){longlongy=0;if(a[i]-x>0)y=a
极地星辰
·
2020-08-10 16:39
ACM-ICPC算法
codeforces
ACM超时问题
上次听学长说,关于标记数组最好换成布尔型的,节约空间时间,一直不以为然,直到做到CodeforcesRound#442(
Div.2
)D.OlyaandEnergyDrinks的时候一直在44组测试数据超时
difubin1811
·
2020-08-10 16:37
CF378E-Sleep in Class及378反思
SleepinClassCodeforcesRound#378(
Div.2
)E.SleepinClassTheacademicyearhasjustbegun,butlessonsandolympiadshavealreadyoccupiedallthefreetime.ItisnotasurprisethattodayOlgafellasleepontheLiterature.Shehadadr
Wallel
·
2020-08-10 13:10
codeforces
acm
Codeforces Round #658 (Div. 2) D. Unmerge预处理+01背包dp
补题,题目链接:CodeforcesRound#658(
Div.2
)D.Unmerge题目描述Letaandbbetwoarraysoflengthsnandm,respectively,withnoelementsincommon.Wecandefineanewarraymerge
丶di
·
2020-08-10 12:53
codeforces题解
动态规划dp
【LGR-067】洛谷 1 月月赛 II & CSGRound 3
Div.2
题解
T1压岁钱题目背景祝大家庚子鼠年快乐!Bestwishes!也愿肺炎早日得到控制吧,中国加油!新年到了,小Z总是能收到很多的压岁钱。小Z是个非常喜欢氪金的玩家,所以时不时都会把压岁钱花掉一部分用来买皮肤和石头。但是小Z又十分担心压岁钱没过几天就都被自己花完了。为此,小Z有封印大法,能够暂时的把自己的一部分钱封印起来(即无法花费),直到某一天解除封印后才能使用。题目描述一共存在有mm个事件,且事件分
zhn_666
·
2020-08-10 12:47
洛谷
Codeforces Problem 707B Bakery(思维题)
此文章可以使用目录功能哟↑(点击上方[+])比赛链接→CodeforcesRound#368(
Div.2
)CodeforcesProblem707BBakeryAccept:0Submit:0TimeLimit
queuelovestack
·
2020-08-10 10:04
CodeForces
Codeforces Round #659(
Div.2
)
文章目录1.A.CommonPrefixes-字符串2.B1.KoaandtheBeach(EasyVersion)-贪心/dfs3.B2.KoaandtheBeach(HardVersion)-贪心4.C.StringTransformation1-字符串1.A.CommonPrefixes-字符串A.CommonPrefixes每次输出和上一个字符串有相同p长度前缀的字符串;每次输入前缀字符个
枫夜夜叶
·
2020-08-10 10:31
Codeforces
Codeforces Round #649 (Div. 2) C. Ehab and Prefix MEXs
CodeforcesRound#649(
Div.2
)C.EhabandPrefixMEXs题目链接Givenanarrayaoflengthn,findanotherarray,b,oflengthnsuchthat
旺 崽
·
2020-08-10 00:37
构造
思维
Codeforces
Codeforces Round #649 (Div. 2) B. Most socially-distanced subsequence
CodeforcesRound#649(
Div.2
)B.Mostsocially-distancedsubsequence题目链接Givenapermutationpoflengthn,finditssubsequences1
旺 崽
·
2020-08-10 00:37
思维
贪心
Codeforces
[codeforces 1393A] Rainbow Dash, Fluttershy and Chess Coloring 题意不清让人恼火
CodeforcesRound#662(
Div.2
)参与排名人数13194[codeforces1393A]RainbowDash,FluttershyandChessColoring题意不清让人恼火总目录详见
mrcrack
·
2020-08-09 22:20
codeforces
[codeforces 1364B] Most socially-distanced subsequence 绝对值脱壳的4种形态
CodeforcesRound#649(
Div.2
)参与排名人数11286[codeforces1364B]Mostsocially-distancedsubsequence绝对值脱壳的4种形态总目录详见
mrcrack
·
2020-08-09 22:49
codeforces
[codeforces 1393C] Pinkie Pie Eats Patty-cakes 桶排序+数字的两种分配形式
CodeforcesRound#662(
Div.2
)参与排名人数13194[codeforces1393C]PinkiePieEatsPatty-cakes桶排序+数字的两种分配形式总目录详见https
mrcrack
·
2020-08-09 22:49
codeforces
[codeforces 1393B] Applejack and Storages 桶排序套桶排序
CodeforcesRound#662(
Div.2
)参与排名人数13194[codeforces1393B]ApplejackandStorages桶排序套桶排序总目录详见https://blog.csdn.net
mrcrack
·
2020-08-09 22:49
codeforces
Codeforces 题解 (不断更新,一起上分)
目录EducationalCodeforcesRound45(RatedforDiv.2)CodeforcesRound#662(
Div.2
)EducationalCodeforcesRound45(RatedforDiv
DeathYmz
·
2020-08-09 18:54
codeforce
算法
algorithm
Codeforces Round #622 (Div. 2)解题报告
CodeforcesRound#622(
Div.2
)【A.FastFoodRestaurant】【题目大意】有ABC3种饺子,个数分别为a,b,c,现在问你这些饺子最多可以给多少个人享用,且满足1.每个客人享用的的每种饺子数目不超过
CUG_YZL
·
2020-08-09 15:52
codeforces
Codeforces Round 271(Div. 2)
layout:posttitle:CodeforcesRound271(
Div.2
)author:"luowentaoaa"catalog:truetags:mathjax:true-codeforces
weixin_30945039
·
2020-08-09 14:27
Codeforces Beta Round #55 (Div. 2)
CodeforcesBetaRound#55(
Div.2
)http://codeforces.com/contest/59A1#include2usingnamespacestd;3#definelsonl
weixin_30832143
·
2020-08-09 14:14
Codeforces Beta Round #31 (Div. 2, Codeforces format)
CodeforcesBetaRound#31(
Div.2
,Codeforcesformat)http://codeforces.com/contest/31A1#include2usingnamespacestd
weixin_30568715
·
2020-08-09 13:07
UESTC 2016 Summer Training #6
Div.2
我好菜啊..UVALive6434给出n个数,分成m组,每组的价值为最大值减去最小值,每组至少有1个,如果这一组只有一个数的话,价值为0问最小的价值是多少dp[i][j]表示将前i个数分成j组的最小价值dp[i][j]=min(dp[k][j-1]+a[i]-a[k+1])1#include2#include3#include4#include5usingnamespacestd;6typedef
weixin_30375247
·
2020-08-09 13:34
BestCoder Round #74 (
div.2
d) hdu5638 Toposort 【线段树】
链接:http://acm.hdu.edu.cn/showproblem.php?pid=5638题意:给出n个点m条边的有向无环图.要求删掉恰好k条边使得字典序最小的拓扑序列尽可能小.分析:因为要字典序最小,所以每次要找入度小于等于k的最小节点,用线段树维护即可。#include#include#include#include#include#include#include#include#in
Fb_by
·
2020-08-09 13:20
top排序
线段树
Codeforces Round #662 (Div. 2) B. Applejack and Storages
CodeforcesRound#662(
Div.2
)B.ApplejackandStorages题目链接ThisyearinEquestriawasayearofplenty,soApplejackhasdecidedtobuildsomenewapplestorages.Accordingtotheadviceofthefarmdesigners
旺 崽
·
2020-08-09 11:43
map
思维
Codeforces
Educational Codeforces Round 82 (Rated for
Div.2
)B. National Project
B.NationalProjecttimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYourcompanywasappointedtolaynewasphaltonthehighwayoflengthn.Youknowthateverydayyoucaneither
QQQQQQQ_479
·
2020-08-09 11:06
cf
UESTC 2018 Summer Training #6
Div.2
A小Hi在玩一种牌类游戏,每张牌的属性值可以看成一个三元组(Ai,Bi,Ci),我们定义一张牌(p1,p2,p3)比(q1,q2,q3)大,当且仅当集合{1,2,3}中有至少两个数x满足px>qx例如(5,1,3)比(4,10000,2)大现在小Hi获得了一种特殊能力,他能在比大小之前,随便改变自己的牌的属性的顺序,例如将(1,2,3)改成(2,3,1),注意是每次比大小之前都可以改变现在小Hi一
mxYlulu
·
2020-08-09 09:22
队内集训
队内补题
队内赛补题
[Gym 101755]UESTC 2018 Summer Training #12
Div.2
初步题解
这是基于在目前能力内完成的题解。这场比赛我做出了666题,实际上可以做出888题。还有111题是真的缺少了这类思想。地址:实质上是一场gymgymgym截止到现在:还剩下D、G、I、F\color{red}D、G、I、FD、G、I、F题未补AAA:已知a、ba、ba、b的sumsumsum和gcdgcdgcd,求出一组可能解a+b=xk+yk=suma+b=xk+yk=suma+b=xk+yk=s
mxYlulu
·
2020-08-09 09:50
队内集训
队内补题
[codeforces 1313A] Fast Food Restaurant 生词太多
CodeforcesRound#622(
Div.2
)比赛人数5752[codeforces1313A]FastFoodRestaurant生词太多总目录详见https://blog.csdn.net/mrcrack
mrcrack
·
2020-08-09 09:41
codeforces
[codeforces 1313C1] Skyscrapers (easy version) 问的是谷,答的是峰
CodeforcesRound#622(
Div.2
)比赛人数5752[codeforces1313C1]Skyscrapers(easyversion)问的是谷,答的是峰总目录详见https://blog.csdn.net
mrcrack
·
2020-08-09 09:40
codeforces
寒假刷题37: Codeforces Round #622 (Div. 2)C1. Skyscrapers (easy version)
题目链接:CodeforcesRound#622(
Div.2
)C1.Skyscrapers(easyversion)题目解析:通过分析题目可以知道,最终情况一定是一个倒V字形分别让每一个点作为最高点,记录当前可建造的最高高度
int_lyy
·
2020-08-09 08:53
hdu 5637 BestCoder Round #74 (
div.2
)
TransformAccepts:7Submissions:49TimeLimit:4000/2000MS(Java/Others)MemoryLimit:131072/131072K(Java/Others)问题描述给出nn个整数,对于一个整数xx,你可以做如下的操作若干次:+令xx的二进制表示为\overline{b_{31}b_{30}...b_0}b31b30...b0,你可以翻转其中一个
diaocuiguo2493
·
2020-08-09 07:49
java
Ozon Tech Challenge 2020 (Div.1 +
Div.2
, Rated, T-shirts + prizes!)ABC
A.KuroniandtheGiftsa1usingnamespacestd;intt;inta[1005];intb[1005];intmain(){cin>>t;while(t--){intn;cin>>n;for(inti=1;i>a[i];for(inti=1;i>b[i];sort(a+1,a+n+1);sort(b+1,b+n+1);for(inti=1;i=r或找不到时结束#incl
YeHosea
·
2020-08-09 06:08
Codeforces
CF #326 (Div. 2) E Duff in the Army
//CF#326(
Div.2
)EDuffintheArmy////题目大意//一棵n各节点树,有p个人分布在节点上,q个询问,每个询//问求u到v路径上小于k的所有人的标号.
TIMELIMITE
·
2020-08-09 06:25
Codeforces
线段树
Data
structure
UESTC 2016 Summer Training #2
Div.2
A dp、递推、多阶段问题
A-ATimeLimit:336MSMemoryLimit:1572864KB64bitIOFormat:%lld&%lluSubmitStatusPracticeSPOJAMR11ADescriptionThanksalotforhelpingHarryPotterinfindingtheSorcerer'sStoneofImmortalityinOctober.Didwenottellyout
ProLightsfxjh
·
2020-08-09 06:10
☺藏题阁☺
dp
:
背包dp
UESTC
2016
Summer
Training
Virtual
OJ
算法的艺术
UESTC 2016 Summer Training #1
Div.2
L - Plus or Minus (A) dfs
L-PlusorMinus(A)TimeLimit:1000MSMemoryLimit:262144KB64bitIOFormat:%I64d&%I64uSubmitStatusPracticeGym100989LDescriptionstandardinput/outputAbdelKaderenjoysmath.Hefeelsveryfrustratedwheneverheseesaninco
ProLightsfxjh
·
2020-08-09 06:09
搜索:DFS
☺藏题阁☺
Virtual
OJ
UESTC
2016
Summer
Training
算法的艺术
Codeforces Round #271 (Div. 2) F - Ant colony 线段树 + GCD
CodeforcesRound#271(
Div.2
)F-Antcolony题意:给定一个序列有M个提问每次提问求给定区间中有多少个数不能整除区间中其他的数至少有一次.思路:题意转化一下就是求区间中有多少个数能整除其他数
Hivoodoo
·
2020-08-09 06:09
ACM
......数据结构
............线段树
UESTC 2019 Summer Training #1
Div.2
菜鸡不配拥有姓名AAA题意:每次可以将一个大正方形切成四个小正方形,并且保证切割之后从左下角到右上角走过的正方形都是同样大小的。参考:https://blog.csdn.net/Tiw_Air_Op1721/article/details/84454136这个题解写的比较详细。主要的意思是:我们最终要实现的形态是这样的:最左和左上的正方形不断切割保证同时切割,剩下的可以随意切割。显然对于每个状态,
mxYlulu
·
2020-08-09 05:12
队内集训
队内赛补题
Codeforces Round #Pi (Div. 2)
题目传送:CodeforcesRound#Pi(
Div.2
)A.LinelandMail水题。。
zzuspy
·
2020-08-08 22:30
Codeforces
ACM
CodeForces
Codeforces Round #662 (Div. 2) 题解
CodeforcesRound#662(
Div.2
)题解A.RainbowDash,FluttershyandChessColoring阅读题,题意比较难理解,但是读懂题多画几个例子之后就能发现答案其实就是
0xDkXy_DWM
·
2020-08-08 02:00
codeforces 614B(
div.2
) 模拟
模拟乘法有毒的一题,各种细节。。代码写得自己都不想看。。#include"cstdio"#include"queue"#include"cmath"#include"stack"#include"iostream"#include"algorithm"#include"cstring"#include"queue"#include"map"#include"vector"#definelllong
weixin_30260399
·
2020-08-08 02:45
CF556(
div.2
) E. Tree Generator
题目大意以长度为2∗(n−1)2*(n-1)2∗(n−1)的括号的形式给出一棵n(3≤n≤100000)n(3\len\le100000)n(3≤n≤100000)个节点的有根树,初始位置在根节点处,从左向右遍历括号序列,其中左括号表示派生出一个新的儿子向下走,右括号表示回溯到父亲节点,即向上走。给出q(1≤q≤100000)q(1\leq\le100000)q(1≤q≤100000)个操作,每个
deadpool66
·
2020-08-08 01:23
CF
codeforces 1150(round 556
Div.2
)E - Tree Generator™
A.StockArbitraging签到#includeusingnamespacestd;inta[35],b[35];intmain(){intn,m,r;scanf("%d%d%d",&n,&m,&r);for(inti=1;i=2)for(inti=0;a[1]*iusingnamespacestd;chara[55][55];intmain(){intn;scanf("%d",&n);f
Huah_2018
·
2020-08-08 01:23
Codeforces Round #620 (Div. 2)
CodeforcesRound#620(
Div.2
)A.TwoRabbits题意两只兔子相向而跳,一只一次跳距离a,另一只一次跳距离b,每次同时跳,问是否可能到同一位置题解每次跳相对距离减少Δ=(a+b
py_2017
·
2020-08-05 19:15
比赛专栏
上一页
4
5
6
7
8
9
10
11
下一页
按字母分类:
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
其他