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
cf-348A 二分暴力
http://codeforces.com/
problemset
/problem/348/A由题意直接对答案进行二分查找知道找到满足条件的最小的answa了一次是因为没有对数组排序#include#include
devYzhou
·
2020-08-14 13:52
CF
第一次刷leetcode记录一下:题目为存在重复元素。
leetcode国内网站:https://leetcode-cn.com/
problemset
/all/感觉第一个还是很简单的,O(∩_∩)O哈哈~,可能我还没有被现实打击吧,分享给大家,希望大家可以一起进步
蛋蛋淡淡定
·
2020-08-14 11:30
LeetCode刷题记录
leetcode每日一题,动态规划算法+二分查找!!
leetcode国内网站:https://leetcode-cn.com/
problemset
/all/给定一个无序的整数数组,找到其中最长上升子序列的长度。
蛋蛋淡淡定
·
2020-08-14 09:45
LeetCode刷题记录
Sherlock and his girlfriend (Codeforces-776B)
题目链接:http://codeforces.com/
problemset
/problem/776/BB.Sherlockandhisgirlfriendtimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputSherlockhasanewgirlfriend
JY_xiaoli
·
2020-08-14 07:42
逻辑思维
【Codeforces】CF982B-Bus of Characters(优先队列)
题目链接:https://codeforces.com/
problemset
/problem/982/B题目大意给定2×n2\timesn2×n的座位,每一列的两个记为一排,每排有权重w1,w2,…,wn
xy160322
·
2020-08-13 23:11
算法与数据结构
【codeforces1060C】【思维】【Maximum Subrectangle】
题目来源:http://codeforces.com/
problemset
/problem/1060/C题目描述现有两个长度分别为n,mn,mn,m的数组a,ba,ba,b,数组中的元素都为正数,令CCC
非常可乐(이녕)
·
2020-08-13 23:41
思维
思维
Codeforces Round #661 (Div. 3) C. Boats Competition
http://codeforces.com/
problemset
/problem/1399/C双指针,枚举2-2*n。
ICPC不拿牌不改名
·
2020-08-13 22:50
codeforces
暴力枚举
Codeforces 855C. Helga Hufflepuff's Cup----树形DP
>>http://codeforces.com/
problemset
/problem/855/C#include#include#include#includeusingnamespacestd;constintmod
weixin_30515513
·
2020-08-13 20:18
Codeforces - 1033C - Permutation Game - 简单dp - 简单数论
https://codeforces.com/
problemset
/problem/1033/C一开始觉得自己的答案会TLE,但是吸取徐州赛区的经验去莽了一发。
weixin_30508241
·
2020-08-13 20:17
HihoCoder 1636 Pangu and Stones(区间dp)
https://hihocoder.com/
problemset
/problem/1636dp[i][j][k]表示将i到j范围内的石头合并最终成k堆的最优解。
threeh20
·
2020-08-13 19:03
dp
区间dp
差分数组---两种写法(Greg and Array)
http://codeforces.com/
problemset
/problem/296/C#include#include#include#include#include#include#include
搬砖的小孩有肉吃
·
2020-08-13 18:22
差分数组
【算法】LeetCode476:数字的补数
中午2点左右闲来无事,打开了LeetCode题库:https://leetcode-cn.com/
problemset
/all/随机点了一道题,题目要求:输入一个十进制数,转化为二进制数输出该二进制对应的反码的十进制数例如
midnight_time
·
2020-08-13 16:31
我信仰自由与共享
算法
codeforces1391D 505
https://codeforces.com/
problemset
/problem/1391/D每个偶数长度的正方形都有奇数个1,那么存在长度为4的正方形肯定不行那么把#definepbpush_backusingnamespacestd
二分抄代码
·
2020-08-13 15:26
状态压缩
codeforces 855-B. Marvolo Gaunt's Ring(背包问题)
http://codeforces.com/
problemset
/problem/855/B解题思路:可以把p,q,r看成三个物品,当做背包问题处理。
FZH_SYU
·
2020-08-13 14:17
ACM
codeforces
codeforces_#242 (Div. 2)
这个在codeforces的题目编号是424A-424E424A,Squats题目地址:http://codeforces.com/
problemset
/problem/424/A题目意思:就是给你n个人
dr5459
·
2020-08-13 14:08
CF
水题
构造
codeforces_420B_Online Meeting
题目地址:http://codeforces.com/
problemset
/problem/420/B题目大意:公司要开会,有些人会上线,有些人会下线,只有在任何会议都在场的人才能当leader现在给你一个片段
dr5459
·
2020-08-13 13:37
CF
构造
#484(div.2) B. Bus of Characters
题目地址:http://codeforces.com/
problemset
/problem/982/B题目:IntheBusofCharacterstherearennrowsofseat,eachhaving22seats.Thewidthofbothseatsintheii-throwiswiwicentimeters.Allintegerswiwiaredistinct.Initiallyt
Zero_979
·
2020-08-13 12:49
CF
Pangu and Stones (hihocoder 1636)
文章目录题目链接:题目链接:https://hihocoder.com/
problemset
/problem/1636?
SwustLpf
·
2020-08-13 12:56
区间dp
Codeforces - 1305C 同余 + 鸽巢原理 and Codeforces - 982C 树上dfs
同余+鸽巢原理http://codeforces.com/
problemset
/problem/1305/C题意:给定n个数,n个数两两做差取绝对值,所有差的绝对值做累乘,再对m取模,求这个模的值。
FrozenAllen
·
2020-08-13 11:07
Codeforces
ACM-ICPC 2018 焦作赛区网络赛 H. String and Times(后缀自动机)
后缀自动机裸题,大概就是以下这两题合在一起:http://hihocoder.com/
problemset
/problem/1445http://hihocoder.com/
problemset
/problem
Cymbals
·
2020-08-13 11:38
ACM
后缀自动机
三元逆序对 求ia[k] 的对数 树状数组Codeforces 61E Enemy is weak
http://codeforces.com/
problemset
/problem/61/EE.Enemyisweaktimelimitpertest5secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTheRomanshaveattackedagain.Thistimetheyaremuchmore
詹明捷
·
2020-08-13 11:44
树状数组
CSU 1811 Tree Intersection(线段树+启发式合并 解法)
转自:http://m.blog.csdn.net/hackertom/article/details/71304826Problemacm.csu.edu.cn/csuoj/
problemset
/problem
alpc_qleonardo
·
2020-08-13 10:08
可持久化线段树
线段树
---------Online
Judge--------
CSU
CSU
线段树
启发式合并
主席树
数据结构
题解 牛客【「水」悠悠碧波】
传送门:http://codeforces.com/
problemset
/problem/126
Acapplella
·
2020-08-13 10:00
CodeForces - 899C Dividing the numbers 思维
http://codeforces.com/
problemset
/problem/899/C题意:给你1~n连续的n个数。将这n个数分成两拨,要求两拨之差的绝对值k最小。
ACZone
·
2020-08-12 18:28
思维
CodeForces - 898C Phone Numbers STL
http://codeforces.com/
problemset
/problem/898/C题意:给出n个人,以及每个人的号码,如果号码a是另一个号码b的后缀,那么a就要被删除。
ACZone
·
2020-08-12 18:28
思维
C. Phone Numbers
http://codeforces.com/
problemset
/problem/940/CAndwherethearethephonenumbers?
weixin_30710457
·
2020-08-12 18:43
Codeforces Round #261 (Div. 2)459A. Pashmak and Garden(数学题)
题目链接:http://codeforces.com/
problemset
/problem/459/AA.PashmakandGardentimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPashmakhasfalleninlovewithanattractivegi
田益铭
·
2020-08-12 18:54
CodeForces
H. Queries for Number of Palindromes(回文树处理区间内回文串数量)
题目链接:https://codeforc.es/
problemset
/problem/245/H题意:求区间内回文串的数量。
ccsu_deer
·
2020-08-12 17:41
Codeforces 25B Phone numbers(此题有毒可以忽略)
题目:http://codeforces.com/
problemset
/problem/25/B代码:#include#include#includeusingnamespacestd;intmain(
tenglinxi
·
2020-08-12 17:44
Codeforces
0706 CF#822A-I'm bored with life #822B-Crossword solving
原题目:A题:http://codeforces.com/
problemset
/problem/822/AB题:http://codeforces.com/
problemset
/problem/822/
M_H5211
·
2020-08-11 20:11
A+B
set
Codeforces Round #201 (Div. 1) A. Alice and Bob(数学)
题目地址:http://codeforces.com/
problemset
/problem/346/A思路:最终无法再选择两个数,说明最后形成了一个公差为d的等差数列,即为d,d+d,d+2*d,……,
wang2147483647
·
2020-08-11 18:58
OJ_Codeforces
数学_杂
ACM
codeforce 6E 线段树+枚举
http://codeforces.com/
problemset
/problem/6/EThereareseveraldaysleftbeforethefiftiethbirthdayofafamousBerland'swriterBerlbury.Inthisconnectionthelocallibrarydecidedtomakeanexpositionoftheworksofthisfam
life4711
·
2020-08-11 18:00
线段树&&数组数组
数据结构
Codeforces Round #201 (Div. 1) / 346A Alice and Bob (数论&想法题)
A.AliceandBobhttp://codeforces.com/
problemset
/problem/346/Atimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputItissoboringinthesummerholiday
synapse7
·
2020-08-11 18:18
acm之路--数学
acm之路--好题/陷阱
数论
UVa
CodeForces 553B Kyoya and Permutation(找规律)
链接:http://codeforces.com/
problemset
/problem/553/BB.KyoyaandPermutationtimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputLet'sdefinethepermutationoflengthnasan
hellohelloC
·
2020-08-11 16:39
找规律
CF313D Ilya and Roads(区间DP)
题目链接:http://codeforces.com/
problemset
/problem/313/D题意:给出一个长度为n的区间。给出m个小区间以及每个小区间的代价。
weixin_34242331
·
2020-08-11 14:37
Codeforces
Problemset
problem 1129 B Wrong Answer —— 构造数组
Considerthefollowingproblem:givenanarrayacontainingnintegers(indexedfrom0ton−1),findmax0≤l≤r≤n−1∑l≤i≤r(r−l+1)⋅ai.Inthisproblem,1≤n≤2000and|ai|≤106.Inanattempttosolvetheproblemdescribed,Alicequicklycam
天翼之城*
·
2020-08-11 13:45
想法
codeforces 360B dp+二分
题目链接:http://codeforces.com/
problemset
/problem/360/B题目含义:给定n个数,你可以修改k个数,是他们中任意两个相邻的数的差值的绝对值最小,求出那个最小值题目思路
IR1S
·
2020-08-11 12:25
Dynamic
programming
codeforces 1209G1 Into Blocks (easy version)
https://codeforces.com/
problemset
/problem/1209/G1div3打多了导致我头铁觉得我必不可能做easyversion我必是把hardversionA掉以后再过
二分抄代码
·
2020-08-11 12:05
贪心
最大流最小割定理 (定理,割集)
#1378:网络流二·最大流最小割定理题目链接:http://hihocoder.com/
problemset
/problem/1378?
_leon1999
·
2020-08-11 04:19
网络流
图论
codeforces B. Permutation 解题报告
题目链接:http://codeforces.com/
problemset
/problem/359/B题目意思:给定n和k的值,需要构造一条长度为2n(每个元素取值范围只能是[1,2n])且元素各不相同的序列
weixin_30898109
·
2020-08-11 04:46
HDU 6273 Master of GCD(差分)
比赛题目:http://acm.hdu.edu.cn/downloads/CCPC2018-Hangzhou-
ProblemSet
.pdfProblemJ.MasterofGCD这道题利用差分的思想,对一个区间
HPU-Lane
·
2020-08-11 03:05
杭电OJ
思维
codeforces1215E Marbles
https://codeforces.com/
problemset
/problem/1215/E设f[i][j]为i在houmian,j在后的颜色i,j之间需要交换的次数,那么从前枚举到后,当前的颜色a
二分抄代码
·
2020-08-11 03:40
DP
状态压缩
codeforces 1250B The Feast and the Bus 枚举+贪心
http://codeforces.com/
problemset
/problem/1250/BEmployeesofJebTrainsareontheirwaytocelebratethe256-thdayoftheyear
csu_xiji
·
2020-08-11 01:26
暴力
贪心
比赛补题
Codeforces Round #654 (Div. 2) A-D 题解
A、OmkarandCompletionhttps://codeforces.com/
problemset
/problem/1372/A题意:题目给出一个数n,要求输出一个n长度的数组(范围[1,1000
化身孤岛的鲸o
·
2020-08-11 00:07
codeforces
Codeforces 607 B-Zuma 【区间DP】
题目来源:https://codeforces.com/
problemset
/problem/607/B★打牌憨憨开始写区间DP啦~翻译:有n个点按顺序排成一行,你现在要消去所有的点。
HungTeen
·
2020-08-11 00:08
动态规划
STL 水题 Fixing Typos(string 容器)
题目连接http://codeforces.com/
problemset
/problem/363/C//string容器#include#include#includeusingnamespacestd
superFool_song
·
2020-08-10 21:25
STL
CodeForces 898F (2020.3.8训练H题)
RestoringtheExpression题目地址:http://codeforces.com/
problemset
/problem/898/FAcorrectexpressionoftheforma
君月.cpp
·
2020-08-10 20:12
CodeForces - 607B (记忆化搜索)
传送门:http://codeforces.com/
problemset
/problem/607/BGenosrecentlyinstalledthegameZumaonhisphone.InZumathereexistsalineofngemstones
Y先森0.0
·
2020-08-10 19:39
哈理工OJ 1284 编辑距离(DP问题)
m=
ProblemSet
&a=showProblem&problem_id=1284编辑距离TimeLimit:1000MSMemoryLimit:65536KTotalSubmit:354(134users
夜幕下的ACM之路
·
2020-08-10 19:46
哈理工OJ
dp
codeforces 189A
原题连接:http://codeforces.com/
problemset
/problem/189/A题意:给你一个长度为n的布条,按给定的a,b,c三种长度切布条(得到的必须满足a,b,c三种之一)能得到的最多布条数
dfsy999999
·
2020-08-10 16:53
上一页
7
8
9
10
11
12
13
14
下一页
按字母分类:
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
其他