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
Problemset
D. AB-string——CF1238D
https://codeforces.com/
problemset
/problem/1238/D思路:1、每个字符存在回文串的最地条件是:AA,BB,ABA,BAB这几个。
Probie Tao
·
2020-09-13 19:12
[
比赛题
]
CF1238D
AB-string
codeforces--1238 D. AB-string
题目链接:https://codeforces.com/
problemset
/problem/1238/D大致题意:给你一个数n,然后给你一个长度为n的字符串,这个字符串是只有A,B两个字母,问你这个字符串的子串
Han Gang
·
2020-09-13 19:06
dp
acm
CSU - 1530 Gold Rush —— 二进制
题目链接:http://acm.csu.edu.cn/csuoj/
problemset
/problem?pid=1530对于一块2^n质量的gold。
alince20008
·
2020-09-13 18:02
C. Round Corridor
链接:https://codeforces.com/
problemset
/problem/1200/CAmugaeisinaverylargeroundcorridor.Thecorridorconsistsoftwoareas.Theinnerareaisequallydividedbynnsectors
龍木
·
2020-09-13 18:08
codeforces
gcd
ACM
code forces 392A Blocked Points
codeforces392ABlockedPoints题目链接:http://codeforces.com/
problemset
/problem/392/A题目大意:这个题题意挺绕的,不过多看两眼也能明白
slicer
·
2020-09-13 15:07
几何
sql基础知识总结
前言刷题或者练习sql的网站:https://leetcode-cn.com/
problemset
/database/sql学习教程:http://www.w3school.com.cn/sql/index.asphttps
MInNrz
·
2020-09-13 06:03
sql
CodeForces - 558E.A Simple Task字符串区间排序(计数排序+26棵线段树的维护)
题目链接http://codeforces.com/
problemset
/problem/558/ETimelimit:5000msMemorylimit:524288kBThistaskisverysimple.GivenastringSoflengthnandqquerieseachqueryisontheformatijkwhichmeanssortthesubstringconsistin
lonely_wind_
·
2020-09-12 20:43
#
线段树&树状数组
字符串的处理
线段树
计数排序
Codeforces 1400E Clear the Multiset(贪心 + 分治)
链接:https://codeforces.com/
problemset
/problem/1400/E来源:Codeforces 思路:给你一个数组,现在你可以进行两种操作,操作1:将一段没有0的区间进行减一的操作
Max_n
·
2020-09-12 20:57
Divide
and
Conquer
/
Binary
Greedy
斯坦福 算法1 第三周作业
斯坦福Algorithms:DesignandAnalysis1第三周作业1
ProblemSet
32OptionalTheoryProblems3ProgrammingAssignment34彩蛋:LinearSelection
无所知
·
2020-09-12 16:53
数据结构与算法
codeforces_59B Fortune Telling
题目链接:http://codeforces.com/
problemset
/problem/59/B//C++代码#includeusingnamespacestd;intmain(){intn,m,sum
伪神
·
2020-09-12 15:21
codeforces
codeforces #242 abcd
A:链接:http://codeforces.com/
problemset
/problem/424/A题目大意:统计x的个数是不是总数一半,不是的话要变成一半所需改变次数以及改变后的序列代码:#include
爱生活爱丙妍
·
2020-09-12 14:13
codeforces
Codeforces 1153 C Serval and Parenthesis Sequence
http://codeforces.com/
problemset
/problem/1153/CServalsoonsaidgoodbyetoJaparikindergarten,andbeganhislifeinJapariPrimarySchool.Inhisfavoritemathclass
csu_xiji
·
2020-09-12 14:45
贪心
codeforces 242d
题目:http://codeforces.com/
problemset
/problem/242/D其实简单的BFS就可以搞定的。。但是我就是不能看出这个模型==!!
coder_hsc
·
2020-09-12 14:34
algorithm
"科林明伦杯"哈尔滨理工大学第六届程序设计团队赛(12.10)
m=
ProblemSet
&a=showProblem&problem_id=2315DescriptionKim是一个掌控时间的大师。不同于一般人,他习惯使用秒来计算时间。
Alzh
·
2020-09-12 12:43
codeforces 1075B
B.TaxidriversandLyfthttp://codeforces.com/
problemset
/problem/1075/B二分查找相邻司机,比较距离后确定最终结果。
besti_white
·
2020-09-12 12:11
cf
codeforces 1A 解题报告
来自Vic_:http://blog.csdn.net/Vic___每周一道算法题安慰自己竞赛的心,囧1A水题一道原题地址:http://codeforces.com/
problemset
/problem
Vic020
·
2020-09-12 12:04
ACM/ICPC
CodeForces穿越火线
CodeForces
算法
解题报告
Vic_
解题报告 codeforces 242B
原题目链接如下:http://codeforces.com/
problemset
/problem/242/B解这小道题目让我大费周折。主要原因是轻视了。人一轻敌,思维就不缜密。
liyinchen808
·
2020-09-12 12:04
算法
解题报告 codeforces 242A
原题链接如下:http://www.codeforces.com/
problemset
/problem/242/A这题比较简单,但是这题给我个启示:不要时时苛求算法,有时性能稍逊一点,方法则简单很多,更容易理解
liyinchen808
·
2020-09-12 12:04
算法
CodeForces 185A. Plant(矩阵快速幂)
题目链接:http://codeforces.com/
problemset
/problem/185/ADwarfshaveplantedaveryinterestingplant,whichisatriangledirected"upwards
田益铭
·
2020-09-12 09:18
快速幂
CodeForces 839D Winter is here (容斥原理)
题目链接:http://codeforces.com/
problemset
/problem/839/D题意:有n个士兵,每个士兵的力量值为a[i],现在按照输入的顺序选择k个数(即选择i,i+1,i+3
TooSIMple_
·
2020-09-12 09:23
CodeForces
数学
hihocoder1014(trie树)
题目链接http://hihocoder.com/
problemset
/problem/1014?
总想玩世不恭
·
2020-09-12 08:27
字符串
CodeForces 669D(小思维+负数取模)
题目链接:http://codeforces.com/
problemset
/problem/669/D题意:q次按顺序操作,操作1:整体移动给定单位距离;操作2:奇偶位互换,要求输出q次操作后的情况思路
weixin_30247307
·
2020-09-12 07:20
hihocoder 1014 Trie树 字典树模版题
题目连接:http://hihocoder.com/
problemset
/problem/1014第一次写字典树,首先写了个顶部没有空结点的字典树,--!!
duswin
·
2020-09-12 07:12
HihoCoder1683模拟
题目链接:http://hihocoder.com/
problemset
题解:枚举行数,然后随便模拟下。
做不完的ACM
·
2020-09-12 06:50
弱鸡的日常
思维题
模拟
Codeforces Round #444 (Div. 2) D. Ratings and Reality Shows 贪心
http://codeforces.com/
problemset
/problem/887/D题意:有一个模特,她有一个初始rating值s。她每天可能进行拍照或show中的一种活动。
twh233
·
2020-09-12 06:17
贪心
01_南理学工学院OJ_部分简单题目
听网友建议,前段时间接触刘汝佳的《算法竞赛入门经典》时在南理学工学院(http://acm.nyist.net/JudgeOnline/
problemset
.php)刷过的一些些简单题目。
neicole
·
2020-09-12 06:14
【ACM】刷题记录
codeforces 1019-A. Elections (暴力模拟)
http://codeforces.com/
problemset
/problem/1019/A题目大意:某个国家有n位候选人以及每位候选人的投票数,现在要求编号为1的候选人票数最高(即比其他任何票数都要至少多
FZH_SYU
·
2020-09-12 05:49
ACM
codeforces
D. Little Artem and Dance
题目链接:http://codeforces.com/
problemset
/problem/669/DD.LittleArtemandDancetimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputLittleArtemisfondofdancing.Mostofall
aijiongzhi0439
·
2020-09-12 05:07
codeforces D. Painting The Wall
http://codeforces.com/
problemset
/problem/399/D题意:给出n和m,表示在一个n*n的平面上有n*n个方格,其中有m块已经涂色。
weixin_30871701
·
2020-09-12 05:53
B. Petr and Permutations(思维+逆序对+奇偶性)
https://codeforces.com/
problemset
/problem/986/B题目描述Petrlikestocomeupwithproblemsaboutrandomlygenerateddata.Thistimeproblemisaboutrandompermutation.Hedecidedtogeneratearandompermutationthisway
小菜鸡加油
·
2020-09-12 04:41
思维
树状数组
奇数偶数性
http://codeforces.com/
problemset
/problem/266/B
题目意思:有n个人,站在一队,男的“B”表示,女的用“G”表示,有时间t,,每次调整减(t--)每次整的条件必须是:男的右边是女的,即:(s[i-1]="B",s[i]=='G')每一次都是正对调整。思路:用到for循环,其次用到swap(,)交换函数,并且要求每次循环要保留下次序,以便接下来的循环!附代码:#include#include#includeusingnamespacestd;int
化蝶飞舞
·
2020-09-11 23:12
ACM-其余
CodeForces - 801C Voltage Keepsake(二分)
题目链接:http://codeforces.com/
problemset
/problem/801/C点击打开链接C.VoltageKeepsaketimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYouhavendevicesthatyouwanttousesim
xuejye
·
2020-09-11 18:32
二分
C语言——codeforces598A
原题链接:http://codeforces.com/
problemset
/problem/598/A泰泰学长又来玩数字了,泰泰学长想让你帮他求1-n的和,但是这次的求和可不是简单的1+2+...
隔壁。。
·
2020-09-11 17:34
Codeforces 801C - Voltage Keepsake
C.VoltageKeepsake题目链接:http://codeforces.com/
problemset
/problem/801/Ctimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputYouhavendevicesthatyouwanttousesimultane
weixin_34326558
·
2020-09-11 17:50
codeforces#242B-Megacity-二分
http://codeforces.com/
problemset
/problem/424/B给n,s给n个城市,以及里面人口坐标中心0,0有s人,现在扩宽以0,0为中心,半径为r圈一个圈,使得圈内人口大于等于
yuhong_liu
·
2020-09-11 17:10
CF
其他
二分
codeforces 831D Office Keys
题目链接:http://codeforces.com/
problemset
/problem/831/D题意:在一条x坐标轴上,有n个人(坐标a1,a2,,,an),k把钥匙(坐标b1,b2,,,bk),
spring_3_shine
·
2020-09-11 16:19
贪心
Codeforces 51E Pentagon
题意https://codeforces.com/
problemset
/problem/51/E在无向图中统计有多少个五元环,顶点数≤700\le700≤700算法:枚举枚举五元环的两个顶点,找到两条各自包含
setoy
·
2020-09-11 16:40
Algorithms
C-C++
Codeforces 45G Prime Problem
题意https://codeforces.com/
problemset
/problem/45/G作为数论题,这个题面给出的问题情景可以打高分,所以把题目简述下有nnn个房子,编号1..n1..n1..n
setoy
·
2020-09-11 16:40
Algorithms
C-C++
算法
素数
Codeforces 52C Circular RMQ
题意https://codeforces.com/
problemset
/problem/52/C两种操作:inc(lf, rg, v)inc(lf, rg, v)inc(lf, rg, v)—闭区间[lf
setoy
·
2020-09-11 16:40
Algorithms
C-C++
Codeforces 51C Three Base Stations
题意https://codeforces.com/
problemset
/problem/51/Cxxx水平轴上有n(≤2×105)n(\le2\times10^5)n(≤2×105)个房子,建3个基站,
setoy
·
2020-09-11 16:40
C-C++
Algorithms
Codeforces Round #538 (Div. 2) Yet Another Array Partitioning Task(贪心)
链接:http://codeforces.com/
problemset
/problem/1114/B来源:CodeforcesAaybiscalledtobeasubarrayofaifitformsacontinuoussubsequenceofa
Max_n
·
2020-09-11 16:39
Greedy
【CodeForces】【思维题】799 A Carrot Cakes
【题目】http://codeforces.com/
problemset
/problem/799/A【题意】现在要做n个蛋糕,一个机器每t时间做k个蛋糕,你可以选择用d时间再造一个机器,造机器时第一个机器也能工作
swqeaaa
·
2020-09-11 15:41
思维题
CodeForces
[CodeForces - 768B] Code For 1
链接:http://codeforces.com/
problemset
/problem/768/BProblemdescriptionJonfoughtbravelytorescuethewildlingswhowereattackedbythewhite-walkersatHardhome.Onhisarrival
carrot_iw
·
2020-09-11 14:54
数据结构
Codeforces 878A - Short Program(位运算)
原题链接:http://codeforces.com/
problemset
/problem/878/A题意:给出n个位运算操作,化简这些操作,使化简后的操作次数不多于5步。
bangpi1875
·
2020-09-11 14:56
codeforces 868C - Qualification Rounds(构造)
原题链接:http://codeforces.com/
problemset
/problem/868/C题意:有k个队伍参加比赛,比赛有n个预选的题目,有些队伍对已经事先知道了一些题目。
bangpi1875
·
2020-09-11 14:55
Codeforces 831C--Jury Marks (思维)
题目链接:http://codeforces.com/
problemset
/problem/831/C题意:有一位参赛选手,我们不知道他初始或最后的成绩,但是知道k次评审所加(减)的分数,以及n个在这过程中的他的分数
bangpi1875
·
2020-09-11 14:55
codeforces 819B - Mister B and PR Shifts(思维)
原题链接:http://codeforces.com/
problemset
/problem/819/B题意:把一个数列整体往右移k位(大于n位置的数移动到数列前端,循环滚动),定义该数列的“偏差值”:,
bangpi1875
·
2020-09-11 14:55
Codeforces 1197D Yet Another Subarray Problem(前缀和+暴力统计)
题目链接:http://codeforces.com/
problemset
/problem/1197/D题目大意:给出一列数组和两个常数m,k,然后定义一段子序列的cost等于该段子序列各元素之和减去该段长度与
arthor_2003146
·
2020-09-11 14:14
Codeforces 724B Batch Sort(暴力枚举)
题目链接:http://codeforces.com/
problemset
/problem/724/B题目大意:给你一个n*m的矩阵,每次可以交换每行的任意两个数或者交换任意两列(只有一次交换机会);最多有
JXR_12355
·
2020-09-11 13:44
ACM
C. Border(exgcd/裴蜀定理)
https://codeforces.com/
problemset
/problem/1010/C题意翻译NatashaNatasha抵达了火星.火星上的钞票面额有nn种,第ii种的价值是a_iai。
小菜鸡加油
·
2020-09-11 13:15
数论
exgcd
上一页
2
3
4
5
6
7
8
9
下一页
按字母分类:
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
其他