一些图论简单题:500A.NewYearTransportation437C.TheChildandToy510C.FoxAndNames475B.StronglyConnectedCity639B.BearandForgottenTree3623A.GraphandString449B.JzzhuandCities543B.DestroyingRoads500A.NewYearTransportation有n个城市排成1排,从第i个城市可以走到\(i+a_i\)号城市,并给定一个城市t,问是否能从1到t?\(1\leqn,a_i\leq10^5\)题解将1打个标记,从左往右扫一遍,若i打上标记,...
一些数据结构简单题:570C.Replacement427B.PrisonTransfer519B.AandBandCompilationErrors650A.Watchmen466C.NumberofWaysCHSEQ22.ChefandFavouriteSequence460C.Present459D.PashmakandParmida’sproblem528A.GlassCarving704A.Thor339D.XeniaandBitOperations527527D.CliqueProblem718D.AndrewandChemistry570C.Replacement给定一个长为n的字符串(包含小写字母和'.'),有m次操作...
近期评论