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
Codeforces 387E 树状数组
http://codeforces.com/
problemset
/problem/387/E记录每个数的下标,对数从小到大考虑。如果该数需要保留,那么就往set中插入该数的下标。
Hermit_Inwind
·
2020-07-06 22:17
解题报告
树状数组
课程 13:Problem Set 4
课程13:
ProblemSet
41.练习:AdmissibleHeuristic(可接受启发)A*算法的问题AdmissableHeuristicH(x)']#Usethesewhencreatingyourpolicygrid
我还听说过石壁岭的小河湾
·
2020-07-06 16:54
课程笔记
Codeforces 625
http://codeforces.com/
problemset
/problem/625/A题意:换饮料瓶,买最多饮料的问题,思想就是分类讨论然后,处理一下就ok了,注意减法的思想以及提前减去的思想!!
yp_2013
·
2020-07-06 11:16
ACM
水
思维
Codeforces 1138 A 思维水题
http://codeforces.com/
problemset
/problem/1138/AArkadyinvitedAnnaforadinnertoasushirestaurant.Therestaurantisabitunusual
csu_xiji
·
2020-07-06 09:21
水题
思维
CodeForces 711C.Coloring Trees【DP】
题目链接http://codeforces.com/
problemset
/problem/711/C思路设dp[i][x][l]代表涂完前i棵树,美丽值为x,最后一棵树的颜色为l的最小代价。
The_Dawn_Star
·
2020-07-06 07:31
CodeForces
DP
CodeForces -939A 三角恋爱
题目链接:http://codeforces.com/
problemset
/problem/939/AA.Любовныйтреугольникограничениеповременинатест1секундаограничениепопамятинатест256мегабайтвводстандартныйвводвыводстандартныйвыводКакизвестно
名字太长容易被发现并打死
·
2020-07-06 06:15
2018暑假ACM集训
#
ACM_水题
CodeForces -1037B 达到中位数
题目链接:http://codeforces.com/
problemset
/problem/1037/BB.Достигнутьмедианыограничениеповременинатест1секундаограничениепопамятинатест256мегабайтвводстандартныйвводвыводстандартныйвыводВамданмассивaa
名字太长容易被发现并打死
·
2020-07-06 06:15
2018暑假ACM集训
#
ACM_数论
计算几何
DNA Alignment
http://codeforces.com/
problemset
/problem/520/C题解:思维+数学+快速幂/**@Author:STZG*@Language:C++*/#include#include
STZG
·
2020-07-06 04:39
#
C++
Leetcode(力扣)刷题
目录LeetCode5.最长回文子串11盛水最多的容器172.阶乘后的零LeetCodeLeetCode中文版网址https://leetcode-cn.com/
problemset
/all/最近公司喊口号
Musing_jk
·
2020-07-06 01:11
C++
cf #924C Riverside Curio(data structure greedy)
题目http://codeforces.com/
problemset
/problem/924/c题意每天的水位画一条线,如果这条线画过了就不用画了,告诉你每天在水位之上(严格的上面)有多少条线,让你算这几天在水位之下的线的最小可能总和数
weiers
·
2020-07-06 01:33
csu1337 搞笑版费马大定理
http://acm.csu.edu.cn/csuoj/
problemset
/problem?pid=1337Description费马大定理:当n>2时,不定方程an+bn=cn没有正整数解。
weixin_33910434
·
2020-07-05 23:08
Codeforces Round #14 D. Two Paths(求树上两条不相交的路径的乘积最大值)
题目链接:http://codeforces.com/
problemset
/problem/14/D思路:直接枚举每一天路径的两端,然后求以每一端为树根的树上最长路径,然后相乘就可以了。
weixin_33826609
·
2020-07-05 23:30
CodeForces 299B Ksusha the Squirrel
http://codeforces.com/
problemset
/problem/299/B题意:这个题挺简单的,就是说这个姑娘不喜欢走有石头的扇形,所以给你一个k的值,代表她一次可以跳多少扇形。
weixin_30887919
·
2020-07-05 22:39
codeforces568E.Longest Increasing Subsequence
传送门:http://codeforces.com/
problemset
/problem/568/E思路:首先没有空位,我们是记录一个low数组表示长度为i的上升子序列的最小结尾。
weixin_30376163
·
2020-07-05 20:10
GUETOJ - 1099 同网CS (模拟检查是否同在内网;ip,子网掩码是否正确)
http://acm.guet.edu.cn/
problemset
/problem/1099#include#include#includeusingnamespacestd;constintMAX_N
nw4869
·
2020-07-05 16:54
模拟
模拟
codeforces 301B. Yaroslav and Time(下标的艺术)
http://codeforces.com/
problemset
/problem/301/B大意是这样的:从1点经过k点到达n点,开始出发的时间是极短的(0.X),其中途中点可以给予不同的time资源,
theArcticOcean
·
2020-07-05 14:07
algorithm_图论
Miller-Rabin质数测试
题目链接:http://hihocoder.com/
problemset
/problem/1287?
yqtaowhu
·
2020-07-05 14:22
Alogrithm
Codeforces Round #194 (Div. 1) / 333B Chips(贪心+代码优化)
B.Chipshttp://codeforces.com/
problemset
/problem/333/Btimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputGeraldplaysthefollowinggame.Hehasacheckeredfieldofsizen
synapse7
·
2020-07-05 14:58
Codeforces
贪心
codeforces
Codeforces 1251D Salary Changing (二分+最大化中位数)
https://codeforces.com/
problemset
/problem/1251/D提供一个比官方题解还简洁的二分思路。观察发现中位数越大,发出的工资越多,这满足二分条件。
synapse7
·
2020-07-05 14:58
Codeforces
codeforces 816B
题目链接:http://codeforces.com/
problemset
/problem/816/B题解:前缀和的经典应用代码:#include#include#include#include#include
kicksilver7
·
2020-07-05 12:45
ACM
Educational Codeforces Round 49 (Rated for Div. 2)A. Palindromic Twist
http://codeforces.com/
problemset
/problem/1027/Aabs()的意思是求绝对值的意思#includeusingnamespacestd;intmain(){intt
chen_zan_yu
·
2020-07-05 08:08
CF
[Codeforces 484A]Bits(拆位贪心)
题目链接http://codeforces.com/
problemset
/problem/484/A题目大意求[L,R]里二进制中1的出现次数最多的数字思路首先我们把L和R拆成二进制数,然后个位对齐,形如下面这样
我是傻叉
·
2020-07-05 02:18
传统题
比赛赛题
模拟/贪心
CodeForces
[Codeforces 55D]Beautiful numbers(数位DP)
题目链接http://codeforces.com/
problemset
/problem/55/D题目大意多次询问。
我是傻叉
·
2020-07-05 02:18
比赛赛题
CodeForces
传统题
动态规划
[Offer收割]编程练习赛7
图片排版题目链接:http://hihocoder.com/
problemset
/problem/1365解题思路:比较容易想到是O(n^2)的解决方案,遍历n种删除可能,每次遍历O(n)时间求总高度。
piaocoder
·
2020-07-05 01:42
codeforces1370E Binary Subsequence Rotation
https://codeforces.com/
problemset
/problem/1370/E怎么div2E水到这种地步昨天考完多媒体从下午一直颓废到晚上,1点突然想写写题,然后wa了2发后评测卡住了
二分抄代码
·
2020-07-04 22:04
2200专项:E. Side Transmutations(字符串翻转 计数问题)
原题:http://codeforces.com/
problemset
/problem/1065/E题意:n长字符串,m长b数组,有k种字符。两个字符串相同当其中一个经过一系列操作变成另外一个。
JK Chen
·
2020-07-04 19:39
想法题
E2. Voting (Hard Version)(优先队列 买卖决策)
http://codeforces.com/
problemset
/problem/1251/E2题意:有n个人,每个人有一个m,val,征服这个人需要val,如果你至少征服了其它m个人,则可以直接征服这个人
JK Chen
·
2020-07-04 19:07
想法题
hrbust 1143 泉水
m=
ProblemSet
&a=showProblem&problem_id=1143DescriptionLeyni是一个地址调查员,有一天在他调查的地方突然出现个泉眼。
ilblue
·
2020-07-04 18:35
题解
bfs-dfs
codeforces 1010D 【二分+交互】
题目链接:http://codeforces.com/
problemset
/problem/1011/D题目让你在1到m之间猜一个数x,你每猜一个数,会得到三种回复,-1(xy)。
Y390d
·
2020-07-04 16:36
二分(三分)
交互
codeforces 295E Yaroslav and Points (线段树)
http://codeforces.com/
problemset
/problem/295/E题目大意:在一条水平的直线上有n个点,编号1~n,告诉你每个点的横坐标xi,然后有两个操作:1:将编号为i的点平移
dyx心心
·
2020-07-04 15:38
codeforces
数据结构
codeforce 994c 思维题
http://codeforces.com/
problemset
/problem/994/C给你两个正方形的四个顶点,让你求是否两者有交点用set来维护所有在正方形里面的点,这样看两个set里面是否有相同的点
Charon_HN
·
2020-07-04 12:00
思维
codeforces 722E. Research Rover
题目链接:http://codeforces.com/
problemset
/problem/722/E题目大意:有一个n*m的网格,起点(1,1),终点(n,m),每次随机向右或向下走。
aufeas
·
2020-07-04 11:23
codeforces
dp
组合数学
cf Educational Codeforces Round 85
题目链接:https://codeforces.com/
problemset
/problem/1334/C题目意思:有n个小怪兽围成一圈,第i个小怪兽有ai点体力值,爆炸之后会对下一个小怪兽产生bi点伤害
WA怪
·
2020-07-04 08:25
CodeForces
CodeForces 552D — Vanya and Triangles 暴力枚举
原题:http://codeforces.com/
problemset
/problem/552/D题意:给出n个点,问一共可以形成多少个三角形;思路:直接暴力枚举,判断三个点是否共线;当同个x的点有多个时
柠檬不酸只是萌
·
2020-07-04 06:04
CodeForces
=====
其它
=====
计算几何
Educational Codeforces Round 46 (Rated for Div. 2) D. Yet Another Problem On a Subsequence
Bryce1010模板http://codeforces.com/
problemset
/problem/1000/D题意:要求一个序列有多少个子好序列。
bryce1010
·
2020-07-04 05:10
Educational Codeforces Round 46 (Rated for Div. 2) B. Light It Up
Bryce1010模板http://codeforces.com/
problemset
/problem/1000/B思路:先用两个数组sumon[]和sumoff[]将亮着的灯和灭的灯累计一下。
bryce1010
·
2020-07-04 05:10
Educational Codeforces Round 46 (Rated for Div. 2) C. Covered Points Count
Bryce1010模板http://codeforces.com/
problemset
/problem/1000/C题意:问你从[l,r]区间的被多少条线覆盖,列出所有答案。
bryce1010
·
2020-07-04 05:10
Educational Codeforces Round 46 (Rated for Div. 2) A. Codehorses T-shirts
Bryce1010模板http://codeforces.com/
problemset
/problem/1000/A题意:问你将一种类型的衣服转换成另一种的最小次数。
bryce1010
·
2020-07-04 05:09
codefoces
CF1217D Coloring Edges(思维+拓扑排序)
题目链接:http://codeforces.com/
problemset
/problem/1217/D题意:第一行给出n和m(2≤n≤5000,1≤m≤5000),代表无向图的点数和边数接下来m行,每行两个数
橘子灬君
·
2020-07-04 04:11
codeforces
codeforces-1213G-Path Queries(并查集+离线)
题目链接:http://codeforces.com/
problemset
/problem/1213/G题意:首先给出两个数n,m(1#include#include#include#include#include
橘子灬君
·
2020-07-04 04:11
codeforces
Croc Champ 2013 - Round 1 E. Copying Data 线段树
题目链接:http://codeforces.com/
problemset
/problem/292/EE.CopyingDatatimelimitpertest2secondsmemorylimitpertest256megabytes
weixin_30556161
·
2020-07-04 02:02
Codeforces Round #194 (Div. 1) / 333A Secrets(贪心)
A.Secretshttp://codeforces.com/
problemset
/problem/333/Atimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputGeraldhasbeensellingstatesecretsatleisure.Allthesecret
synapse7
·
2020-07-04 02:38
Codeforces
贪心
Codeforces Beta Round #36 / 36A Extra-terrestrial Intelligence(模拟)
A.Extra-terrestrialIntelligencehttp://codeforces.com/
problemset
/problem/36/Atimelimitpertest2secondsmemorylimitpertest64megabytesinputinput.txtoutputoutput.txtRecentlyVasyagotinterestedinfindingextra
synapse7
·
2020-07-04 02:38
acm之路--模拟
Codeforces
CodeForces 379A. New Year Candles
题目:http://codeforces.com/
problemset
/problem/379/A题意:有a支蜡烛,每烧掉b支蜡烛重新生成一根蜡烛(一支蜡烛燃烧一小时),求蜡烛燃烧的时间思路:本来a支蜡烛的燃烧时间加上后来生成的蜡烛的时间
陌初
·
2020-07-02 17:54
水题
2020NYIST个人积分赛第九场F题cf1144F
个人博客链接:https://blog.nuoyanli.com/2020/04/22/cf1144f/2020NYIST个人积分赛第九场F题原题链接https://codeforces.com/
problemset
nuoyanli
·
2020-07-02 13:29
ACM
#
构造
图论
CodeForces - Maximum Sum of Digits
题目链接:http://codeforces.com/
problemset
/problem/1060/BTimelimitpertest:2secondsMemorylimitpertest:512megabytesProblemDescriptionYouaregivenapositiveintegern.LetS
ityanger
·
2020-07-02 10:15
#
贪心
#
水题
#
数学几何
#
模拟
#
数据结构
ACM题解
图片排版
http://hihocoder.com/
problemset
/problem/1365?
lubovbyc
·
2020-07-02 10:38
hihocoder
算法
codeforces1373E Sum of Digits
https://codeforces.com/
problemset
/problem/1373/E其实这题挺水的,然而看见F好像更可做一些,就去WAF一直到结束了。。。看了jly的代码。。
二分抄代码
·
2020-07-02 08:50
巧妙暴力
思维
规律
Codeforces 839C Journey (树形dp + 概率期望)
题目链接:http://codeforces.com/
problemset
/problem/839/C题意:有n个城市,n-1条路(从任一城市出发都能够到达任意城市,故该图为树),求从1点到各个叶子点的期望长度思路
TooSIMple_
·
2020-07-02 03:25
ACM
Codeforces 711A. Bus to Udayland
题目链接:http://codeforces.com/
problemset
/problem/711/A题意:有一个公交车有N行座位,每行座位又分别有四个座位,其中”1“号和”2“号相邻,”3“号和”4“
dimaishu7553
·
2020-07-01 22:58
上一页
12
13
14
15
16
17
18
19
下一页
按字母分类:
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
其他