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
TON
[coseforces] B - Bakery 贪心
I64uSubmitStatusPracticeCodeForces707BDescriptionMashawantstoopenherownbakeryandbakemuffinsinoneofthencitiesnumberedfrom1
ton
.Therearemb
chudongfang2015
·
2020-08-10 09:48
codeforces
ACM_比赛题目
Codeforces刷题之旅
codeforces 707B - Bakery
Mashawantstoopenherownbakeryandbakemuffinsinoneofthencitiesnumberedfrom1
ton
.Therearembidirectionalroads
菜逼一枚
·
2020-08-10 09:05
大学竞赛
codeforces
ACM
算法
codeforces 707 B. Bakery【图论】
B.Bakerytimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputMashawantstoopenherownbakeryandbakemuffinsinoneofthencitiesnumberedfrom1
ton
.Therearembidirectionalro
Joefery
·
2020-08-10 08:01
CodeForces
->
图论
<-
codeforces 707 B. Bakery (贪心)
B.Bakerytimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputMashawantstoopenherownbakeryandbakemuffinsinoneofthencitiesnumberedfrom1
ton
.Therearembidirectionalro
星空-点点
·
2020-08-10 08:00
codeforces
贪心
Codeforces978C——Letters
TherearendormitoriesinBerlandStateUniversity,theyarenumberedwithintegersfrom1
ton
.Eachdormitoryconsistsofrooms
westbrook1998
·
2020-08-10 04:25
ACM练习题
从Fishhook到Macho文件格式(二)
FormatofasymboltableentryofaMach-Ofile.ModifiedfromtheBSD*format.Themodificationsfromtheoriginalformatwerechangingn_other*(anunusedfield)
ton
_sectandtheadditionoftheN_SECTtype.These
weixin_33785108
·
2020-08-10 02:07
CF 288C (Polo the Penguin and XOR operation)
DescriptionLittlepenguinPololikespermutations.Butmostofallhelikespermutationsofintegersfrom0
ton
,inclusive.Forpermutationp
Fate_O
·
2020-08-10 01:54
Bomb(数位dp入门题)
BombProblemDescriptionThecounter-terroristsfoundatimebombinthedust.Butthistimetheterroristsimproveonthetimebomb.Thenumbersequenceofthetimebombcountsfrom1
toN
.Ifthecurrentnumbersequenceinclu
kitalekita
·
2020-08-10 00:25
动态规划之数位dp
动态规划
c++
LeetCode 59. Spiral Matrix II (JAVA)(螺旋矩阵2)
59.SpiralMatrixIIGivenanintegern,generateasquarematrixfilledwithelementsfrom1
ton
2inspiralorder.Forexample
mine_song
·
2020-08-09 22:33
leetcode
HDU - 6228 Tree (2017ICPC沈阳站 深搜+思维)
TreeProblemDescriptionConsideraun-rootedtreeTwhichisnotthebiologicalsignificanceoftreeorplant,butatreeasanundirectedgraphingraphtheorywithnnodes,labelledfrom1
ton
.Ifyoucannotunderstandtheconceptofatree
LP_Cong
·
2020-08-09 22:58
————ACM相关————
——搜索相关——
ACM
-
深度优先搜索
HDU6228求边的左右节点数
ProblemDescriptionConsideraun-rootedtreeTwhichisnotthebiologicalsignificanceoftreeorplant,butatreeasanundirectedgraphingraphtheorywithnnodes,labelledfrom1
ton
.Ifyoucannotunderstandtheconceptofatreeh
ivan_zcy
·
2020-08-09 18:57
C. Letters
C.Letterstimelimitpertest4secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherearendormitoriesinBerlandStateUniversity,theyarenumberedwithintegersfrom1
ton
.Eachdormitoryconsi
小自洽
·
2020-08-09 18:50
codeforces
2020牛客暑期多校训练营(第八场)K - Kabaleo Lite 题解
Apollodecidedtoopenafastfoodrestaurant,calledKabaleoLite\textbf{KabaleoLite}KabaleoLite.Therestaurantservesnkindsoffood,numberedfrom1
ton
.Theprofitforthei-thkindof
CofDoria
·
2020-08-09 17:06
牛客多校训练营
icpc
大数
hdu4405Aeroplane chess【概率DP】
ProblemDescriptionHzzlovesaeroplanechessverymuch.ThechessmapcontainsN+1gridslabeledfrom0
toN
.Hzzstartsatgrid0
MissZhou要努力
·
2020-08-09 16:18
—dp
———其他dp
hdu
算法
dp
CodeForces 1006D
D.TwoStringsSwapsYouaregiventwostringsaandbconsistingoflowercaseEnglishletters,bothoflengthn.Thecharactersofbothstringshaveindicesfrom1
ton
SolitaryOrz
·
2020-08-09 15:15
VJ训练补题
Codeforces
CodeForces - 13E(分块)
Thisisagameforonepersonwithfollowingrules:ThereareNholeslocatedinasinglerowandnumberedfromlefttorightwithnumbersfrom1
toN
.Eachholehasit'sow
weixin_30484739
·
2020-08-09 13:23
hihocoder #1500 : EL SUENO 树DP
LittleHiisgoingtoassassinatetheleaderofanevilgroup,ELSUENO.ThereareNhigh-valuetargetsinthegroup,numberedfrom1
toN
.Eachtargethasanothertarget
yuhong_liu
·
2020-08-09 13:51
hihocoder
dp-----------
动态规划
树dp
Codeforces Round #330 (Div. 2) (595A,595B(容斥原理))
codeforces.com/problemset/problem/595/A解题思路:Itwaseasyrealizationproblem.Let'sincreasethevariableifrom1
ton
piaocoder
·
2020-08-09 10:14
Round-----
hdu 5877 线段树+离散化+DFS
MemoryLimit:262144/262144K(Java/Others)ProblemDescriptionYouaregivenarootedtreeofNnodes,labeledfrom1
toN
.Totheithnodeanon-negativevalueaiisassigned.Anord
CrossDolphin
·
2020-08-09 09:17
-----hdu-----
线段树
DFS
Codeforces 34D. Road Map 树的遍历
D.RoadMaptimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherearencitiesinBerland.Eachcityhasitsindex—anintegernumberfrom1
ton
.Thecapitalhasindexr1
cyendra
·
2020-08-09 07:50
解题报告
图论
World Cup
ThelaststageofFootballWorldCupisplayedusingtheplay-offsystem.Therearenteamsleftinthisstage,theyareenumeratedfrom1
ton
.Severalroundsareheld
「已注销」
·
2020-08-09 07:05
个人随笔
TOJ 1673 Backward Digit Sums 深搜回溯
FJandhiscowsenjoyplayingamentalgame.Theywritedownthenumbersfrom1
toN
(1usingnamespacestd;intn,p,f[11],flag
Wu_yux
·
2020-08-09 06:23
深度优先搜索
hdu 4405 Aeroplane chess
ProblemDescriptionHzzlovesaeroplanechessverymuch.ThechessmapcontainsN+1gridslabeledfrom0
toN
.Hzzstartsatgrid0
Jazz_Charles
·
2020-08-09 06:24
dp
hdu Constructing Roads(最小生成树,kuskal算法)
TotalSubmission(s):14569AcceptedSubmission(s):5530ProblemDescriptionThereareNvillages,whicharenumberedfrom1
toN
itcoder-9527
·
2020-08-09 06:15
Timus 1080. Map Colouring
MapColouringTimeLimit:1.0secondMemoryLimit:16MBWeconsiderageographicalmapwithNcountriesnumberedfrom1
toN
weixin_34406796
·
2020-08-09 01:29
数据结构与算法
Codeforces 34C Page Numbers(简单图论+DFS)
D.RoadMaptimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherearencitiesinBerland.Eachcityhasitsindex—anintegernumberfrom1
ton
.Thecapitalhasindexr1
lab104_yifan
·
2020-08-08 22:22
搜索-回溯法
搜索-图的遍历
bzoj 3637: Query on a tree VI 树链剖分 && AC600
DescriptionYouaregivenatree(anacyclicundirectedconnectedgraph)withnnodes.Thetreenodesarenumberedfrom1
ton
alex151194310
·
2020-08-08 14:50
PAT甲级1049(数1)
:givenanypositiveintegerN,youaresupposedtocountthetotalnumberof1’sinthedecimalformoftheintegersfrom1
toN
.Forexample
_云胡
·
2020-08-07 17:10
PAT甲级
2020牛客多校第八场 K Kabaleo Lite
Apollodecidedtoopenafastfoodrestaurant,calledKabaleoLite.Therestaurantservesnkindsoffood,numberedfrom1
ton
.Theprofitforthei-thkindoffoodisai.Profitmaybenegativebecaus
hcCuriosity
·
2020-08-05 21:44
牛客多校
模拟
动态规划,而已! CodeForces 433B - Kuriyama Mirai's Stones
KuriyamaMiraihaskilledmanymonstersandgotmany(namelyn)stones.Shenumbersthestonesfrom1
ton
.Thecostofthei-thstoneisvi.KuriyamaMiraiwantstoknowsomethingaboutthesestonessoshewillaskyoutwokindsofquestions
weixin_33985679
·
2020-08-05 20:25
Guess Number Higher or Lower
/problems/guess-number-higher-or-lower/WeareplayingtheGuessGame.Thegameisasfollows:Ipickanumberfrom1
ton
.YouhavetoguesswhichnumberIpicked.Everytimeyouguesswrong
K.Sun
·
2020-08-05 20:38
Algorithm
Leetcode
2018 Multi-University Training Contest 2 &&HDU6315 Naive Operations【线段树】
ProblemDescriptionInagalaxyfar,faraway,therearetwointegersequenceaandboflengthn.bisastaticpermutationof1
ton
.Init
Dust_Heart
·
2020-08-05 19:55
线段树&线状数组
【 CodeForces 209C】 【欧拉回路推结论+并查集计算联通分量】 【给定n点m边无向图,可能有自环和重边。 问最少添加多少条边后,使得图存在从点1出发发又回到点1的欧拉回路】
C.TrailsandGladestimelimitpertest4secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputVasyawentforawalkinthepark.Theparkhasnglades,numberedfrom1
ton
.There
QiufengWang424
·
2020-08-05 18:05
online
judge
Codeforces
------欧拉路
------思维题
状压dp
感谢小助理的帮助14564:GetEverything时间限制:1Sec内存限制:128MB提交状态题目描述WehaveNlockedtreasureboxes,numbered1
toN
.AshopsellsMkeys.Thei-thkeyissoldforaiyen
QXK_Jack
·
2020-08-05 18:43
题解
leetcodeNo743. Network Delay Time
Question743.NetworkDelayTimeThereareNnetworknodes,labelled1
toN
.Giventimes,alistoftraveltimesasdirectededgestimes
Dufre.WC
·
2020-08-05 02:47
leetcode
怎么用java把 To be or not to be变成eb ot
ton
ro eb oT
第一种:Stringstr="Tobeornottobe";StringBuffersb=newStringBuffer(str);System.out.println(str+"反转"+sb.reverse());第二种:Strings="Tobeornottobe";Stringresult="";for(inti=s.length()-1;i>=0;i--){result+=s.charAt
只是买一双鞋
·
2020-08-04 19:35
编程小题
2020牛客暑期多校训练营(第八场)I Interesting Computer Game K Kabaleo Lite
Apollodecidedtoopenafastfoodrestaurant,calledKabaleoLite\textbf{KabaleoLite}KabaleoLite.Therestaurantservesnkindsoffood,numberedfrom1
ton
.Theprofitforthei-thk
TJWelsh-corgi
·
2020-08-04 18:00
SPOJ COT - Count on a tree(树链剖分+LCA+主席树,树上第k大)
描述YouaregivenatreewithNnodes.Thetreenodesarenumberedfrom1
toN
.Eachnodehasanintegerweight.Wewillaskyoutoperformthefollowingoperation
riba2534
·
2020-08-04 17:14
【主席树】
【树链剖分】
主席树(应用)
主席树(应用)【树上主席树】:YouaregivenatreewithNnodes.Thetreenodesarenumberedfrom1
toN
.Eachnodehasanintegerweight.Wewillaskyoutoperformthefollowingoperation
Zery_
·
2020-08-04 17:46
ACM——数据结构
开关电源设计实例之Boost 篇
二、理论分析为使系统工作在电流断续模式(DCM)下,应当考虑最差情况:
Ton
最大,也就是Vdc最小,Ro最小(即输出功率最大)。
林科大子兮
·
2020-08-04 16:22
C++ 一条代码打印vector内容以及random_shuffle函数
include#include#includeusingnamespacestd;intmain(intargc,char*argv[]){intn=10;vectorv;//appendintegers0
ton
cywosp
·
2020-08-04 13:19
C/C++
java中如何将每个单词的字母反转,就是将"To be or not to be "变成“oT eb ro
ton
ot eb”
publicstaticvoidmain(String[]args){Strings="Tobeornottobe";String[]ss=s.split("");StringBuildersb=newStringBuilder();for(Stringtemp:ss){StringBuildersbtmp=newStringBuilder(temp);sbtmp.reverse();sb.app
bin1220
·
2020-08-04 13:48
面试题
SPOJ - COT Count on a tree(树上第k大模板题)
YouaregivenatreewithNnodes.Thetreenodesarenumberedfrom1
toN
.Eachnodehasanintegerweight.Wewillaskyoutoperformthefollowingoperation
Cymbals
·
2020-08-04 11:19
ACM
主席树
LCA
[LeetCode] 630. Course Schedule III
Therearendifferentonlinecoursesnumberedfrom1
ton
.Eachcoursehassomeduration(courselength)tandclosedondthday.Acourseshouldbetakencontinuouslyfortdaysandmustbefinishedbeforeoronthedthday.Youwillstartatthe
CNoodle
·
2020-08-04 11:00
BUCK/BOOST电路原理分析
图中,Q为开关管,其驱动电压一般为PWM(Pulsewidthmodulation脉宽调制)信号,信号周期为Ts,则信号频率为f=1/Ts,导通时间为
Ton
,关断时间为Toff,则周期Ts=
Ton
+Toff
nic_r
·
2020-08-04 11:46
硬件知识
1443. Minimum Time to Collect All Apples in a Tree
Givenanundirectedtreeconsistingofnverticesnumberedfrom0
ton
-1,whichhassomeapplesintheirvertices.Youspend1secondtowalkoveroneedgeofthetree.Returntheminimumtimeinsecondsyouhavetospendinordertocollectalla
ForABiggerWorld
·
2020-08-04 10:40
leetcode
Tree
Digit Counting UVA - 1225
Trungisboredwithhismathematicshomeworks.Hetakesapieceofchalkandstartswritingasequenceofconsecutiveintegersstartingwith1
toN
雨巷迷途
·
2020-08-04 09:08
Codeforces-792E Colored Balls(贪心/数学)
E.ColoredBallstimelimitpertest1secondmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputTherearenboxeswithcoloredballsonthetable.Colorsarenumberedfrom1
ton
.i-thboxcontainsaiballs
丿残念灬
·
2020-08-03 21:38
贪心
LeetCode(1195):交替打印字符串 Fizz Buzz Multithreaded(JUC)
github.com/ChopinXBP/LeetCode-Babel传送门:交替打印字符串Writeaprogramthatoutputsthestringrepresentationofnumbersfrom1
ton
NJU_ChopinXBP
·
2020-08-03 21:07
数据结构与算法
JAVA
LeetCode
选择排序、冒泡排序、合并排序、快速排序、归并排序的算法原理
一、冒泡排序算法伪代码:fori=1
ton
forj=0
ton
-iif(data[j]>=data[j+1])swap(data[j],data[j+1])算法思路:第一个循环表示n-1趟即可完成排序
jackfjw
·
2020-08-03 18:36
算法
上一页
9
10
11
12
13
14
15
16
下一页
按字母分类:
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
其他