- 2024-09-10CF717A Festival Organization 题解
Description一个合法的串定义为:长度在\([l,r]\)之间,且只含0,1,并且不存在连续\(2\)个或更多的\(0\)。现在要选出\(k\)个长度相同的合法的串,问有几种选法,答案模\(10^9+7\)。\(1\leqk\leq200,1\leql\leqr\leq10^{18}\)。Solution容易发现答案为\(\sum_{i=l+2}^{r
- 2024-08-22CF1575G GCD Festival 题解
考虑欧拉反演\[\sum\limits_{d\midn}\varphi(d)=n\]则原式可以化为\[\begin{align*}&\sum\limits_{i=1}^n\sum\limits_{j=1}^n\gcd(a_i,a_j)\cdot\gcd(i,j)\\=&\sum\limits_{i=1}^n\sum\limits_{j=1}^n\gcd(a_i,a_j)\sum\li
- 2024-06-22Dragon Boat Fstival Revised
Theleavesrustlewhenthewindblows.Walkingonthesideoftheroadinaforeignland,IsighedthatitwasanotheryearoftheDragonBoatFestival.Asweallknow,DragonBoatFestivalisatraditionalchinesefestivaltoshowourrespecttoQuYuan.
- 2024-06-22Dragon Boat Festival Revised
DragonBoatFestivalHaveyoueverwonderedaboutafestivalthatintegratesthrillingboatraces,delicioustreats,andarichhistory?LooknofurtherthantheDragonBoatFestival!TheDragonBoatFestival,whichfallsonthefifthdayofthefifthlun
- 2024-06-22Dragon Boat Festival Revised
DragonBoatFestivalcandatebacktotheHandynasty,whichhasalonghistory.TheoriginsofDragonBoatFestivalhavebeenvariouslyexplainedsinceancienttimes.Thefestivalhasbeenendowedwithmanyculturalconnotationsinitsinheritancean
- 2024-06-22Dragon Boat Festival
Asthesuncastitsgoldenraysoverthebustlingmarket,theairwasfilledwiththericharomaofbambooleavesandsteamingglutinousrice,whichsignaledthearrivaloftheDragonBoatFestival.Thescentofzongzi,wrappedtightlywiththesoundsof
- 2024-06-21The Dragon Boat Festival Revise
TheDragonBoatFestival,celebratedonthefifthdayofthefifthlunarmonth,isatimeofgreatjoyandexcitementinChina.Itisafestivalrichinhistoryandtradition,honoringthememoryoftheancientpoetQuYuan.Lastdragonboatfestivalfor
- 2024-06-21Dragon Boat Festival
DragonBoatFestivalTheDragonBoatFestival,atraditionalholidayinChina,fallsonthefifthdayofthefifthlunarmonth,anditsfestivitiesarefilledwithcolor,excitement,anddeepculturalsignificance.Andinmycommunity,weattachgreatimport
- 2024-06-21Dragon Boat Festival Revised
ShortTripIwenttoJiujianginJiangxiProvincewithmyroommate.Wedepart!Afteranhouronthemetro,weboardedthetrainasthebeginningofourpleasanttravel.Beautifulsceneryleapedtotheeyesthroughthetrainwindow,whichisoneoftherea
- 2024-06-21dragon boat festival
Listen,isthefootstepsoftheDragonBoatFestivalapproaching?DoyouknowDragonBoatFestival?WhenIwasalittlechild,IlearntknowledgeaboutDragonBoatFestival.TheDragonBoatFestivalalsoknownasDuanwuFestival,isatraditionalChinese
- 2024-06-21Dragon Boat Festival Revised
Asweallknow,theDragonBoatFestivalholdsprofoundhistoricalandculturalsignificance.TheDragonBoatFestivalwasoriginallyasummerfestivaltogetridofplague,andlateritwasusedasafestivalinmemoryofQuYuan.Dragonboatracingsymb
- 2024-06-21Dragon Boat Festival Revised
Thefestival,acommemorationoftheesteemedancientChinesepoetQuYuan,traditionallymarksatimeforfamilialreunions,thethrillingdragonboatraces,andtheindulgenceintraditionaldelicaciessuchaszongzi.However,thisyear,duetomystudi
- 2024-06-212_The Dragon boat festival
TheDragonBoatFestivalThe Dragon Boat Festival, a time-honored traditional Chinese festival, merrily arrives on the fifth day of the fifth lunar month. It is said that this festival originated from the story of Qu Yuan. Qu
- 2024-06-20Dragon Boat Festival Revised
InChina,theDragonBoatFestivaliscelebratedonday5ofthefifthmontheveryyearaccordingtotheChineselunarcalendar.EveryyearontheDragonBoatFestivalday,wegetupearlyandgetdowntomakezongzi.Weaddmeatorredbeansintoitdepe
- 2024-06-20The second writing
FeedbackonnarrativewritingAfterpreliminarywritinganddesign,aswellastryingtocreatethefirstversionofthevideo,Ihaveidentifiedspecificshortcomingsinboththeprocessandresults,asfollowingbelow:Timetoolong.Accordingtothe
- 2024-06-20Dragon Boat Festival Revised
FestivalPreparationDuringtheDragonBoatFestival,ourfamily'spreparationsalwaysexudeastrongsenseofritual.Wehangwormwoodandcalamusathome,intendingtodriveawayevilspiritsandprayforthewell-beingofourfamily.Thistraditio
- 2024-06-20Dragon Boat Festival Revised
DragonBoatFestivalWiththeapproachingoftheDragonBoatFestival,thedesireofgoingbackhomebecamestrongerandstronger.AssoonasIarrivedhome,Ifeltrelaxedbecausethesmellofstickyriceandreedleavesfilledwiththeair.Itisfantast
- 2024-06-19Dragon Boat Festival Revised
Intoday'svideo,IwanttointroducetheDragonBoatFestivaltoyou.TherearemanydifferentversionsregardingtheoriginofDragonBoatFestival,butthemostwidelyacceptedoneiscommemoratingthedeathofthepatrioticpoetQuYuan,whocom
- 2024-06-19The dragon Boat Festival revised
TheDragonBoatFestival,atraditionalfestivaldeprivedfromChina,oftencelebratesonMay5andhaveolonghistory.BeforetheSpringandAutumnPeriodandtheWarringStatesPeriod,peopleheldDragonBoatFestivaltoeliminateillnessandmisfortun
- 2024-06-19Dragon Boat Festival Revised
Asthedrumbeatsechoacrossthewater,theairfillswiththefragrantscentofstickyriceandbamboo.It'stheDragonBoatFestival,avibrantcelebrationthatmarksthememoryofQuYuanandinvitesustoimmerseourselvesintherichtraditions
- 2024-06-13Dragon Boat Festival
TheDragonBoatFestivalisaspecialholidayinChina.Ithappensonthefifthdayofthefifthmonthinthelunarcalendar.It'satimetorememberanoldpoetnamedQuYuanwholovedhiscountryverymuch.Today,wecelebratetheDragonBoatFesti
- 2024-06-13Dragon Boat Festival
DragonBoatFestivalTheDragonBoatFestival,alsocalledtheDuanwuFestival,iscelebratedonthefifthdayofthefifthmonthaccordingtotheChinesecalendar.Forthousandsofyears,thefestivalhasbeenmarkedbyeatingzongziandracingdragon
- 2024-06-13Dragon Boat Festival
TheDragonBoatFestival,atime-honoredtraditioninChina,encapsulatestheessenceofculture,family,andperseverance.ThisdayisalwaysfilledwithmarvelousdelightforaslongasIcanremember.Lastyear'sDragonBoatFestivalseemedlikey
- 2024-06-13The Enchantment of the Dragon Boat Festival
TheEnchantmentoftheDragonBoatFestivalAstheearlyJuneiscoming,theringoftheDragonBoatFestivalhadunconsciouslyknocked.IwastransportedbacktotheenchantingatmosphereoftheDragonBoatFestival.Thisfestival,deeplyrootedinChin
- 2024-06-13The Dragon Boat Festival
TheDragonBoatFestivalapproaching,abuzzofanticipationfillstheair.Thisancientcelebration,passeddownfromgenerationtogeneration,notonlyrepresentsatimeforcommunity,butalsoajourneyofremembrance.Actually,Ididn'tpayattent