- 2024-11-10ffmpeg Code of Conduct
Befriendlyandrespectfultowardsothersandthirdparties.Treatothersthewayyouyourselfwanttobetreated.Beconsiderate.Noteveryonesharesthesameviewpointandprioritiesasyoudo.Differentopinionsandinterpretationshelptheproject.Lo
- 2024-10-15P10851 [EGOI2024] Make Them Meet / 活动面基
构造题做的太少了,感觉这题是非常厉害的构造题。考虑菊花图。菊花图结构非常简单,我的做法是先让所有点颜色相同,这样如果两个人分别在叶子上就可以在根相遇,否则一定会有一人走到根上,再与叶子挨个匹配即可。考虑链的做法。我们可以考虑把两个人往中间赶,他们肯定可以相遇。但是这种
- 2024-10-12Child Education: The Sooner the Better
ChildEducation:TheSoonertheBetter Asaparent,Ideeplyunderstandtheweightofthesaying"Childrenshouldbetaughtfromanearlyage;otherwise,youwillregretitfortherestofyourlife." Childrenarelikeablanksheetofpaper
- 2024-10-12POLIR-Society-Organization-Psychology-Values:价值
https://www.verywellmind.com/speaking-about-values-in-your-relationship-5191152SkiptocontentSearchRelationshipsStrengtheningRelationshipsHowtoTalkAboutYourValuesinaRelationshipByElizabethPlumptreUpdatedonFebruary19,2024Reviewedb
- 2024-10-12[ABC227H] Eat Them All 题解
唐唐题。思路容易发现,我们只要知道了一条边总共经过了多少次(不计方向),我们就可以跑欧拉回路。自己手玩一下,发现只要枚举四个变量,其他的都可以用方程解出来。求完之后,还需要判一下联通性。实际效率是很快的,远远跑不满。时间复杂度:\(O(a_i^4)\)。Code#include<bits/stdc++.h
- 2024-10-05Jupyter - Magic Function Usage
%%writefiledata_preparation/v0.pydevice='cuda'iftorch.cuda.is_available()else'cpu'#OurdatawasinNumpyarrays,butweneedtotransformthem#intoPyTorch'sTensorsandthenwesendthemtothechosendevicex_tr
- 2024-09-2611-12-13 926
这段文本讨论了文明社会中人们应有的自律性,以及缺乏自律可能导致的问题。以下是详细解释:###英文原文整理:1.Andthis,inmyopinion,ishowthingsshouldbeinacivilizedsociety.2.Butpeoplewhohavebeenliberatedfromtheharshdisciplineofcir
- 2024-09-259-12
9段 好的,我会逐句翻译并解释其中的关键词汇及其发音。1.**Thereare,ofcourse,peoplebelongingtoallclasseswhodonotwanttobefascinatedandthenenslavedbyAdmass,andwhoifnecessaryarereadytomakeafewsacrifices,largely
- 2024-09-03POLIR-Documents-EnglishLeaening - Recite the America's Founding Documents : The Declaration of
https://www.archives.gov/founding-docs/declaration-transcriptTheDeclarationofIndependenceNote:ThefollowingtextisatranscriptionoftheStoneEngravingoftheparchmentDeclarationofIndependence(thedocumentondisplayintheRotundaattheN
- 2024-08-27读书笔记(7)语录收集
序言1.Onepictureisworthathousandwords.千言不如一画2.Ifyougivesomeoneaprogram,youwillfrustratethemforaday;ifyouteachthemhowtoprogram,youwillfrustratethemforalifetime.(如果你交给某人一个程序,你将折磨他一整天;如果你教某人如何编写
- 2024-08-25FreeBSD cheat
https://www.freshports.org/misc/cheat sudoopkginstallcheatusingthecommandline:install misc/cheat --itcomeswithabunchofexamplesonmostusedcommands.manpagesdescribetheworkingsofcommands, misc/cheat givesandcollectsyourownexam
- 2024-08-15Make Them Narrow
题目大意:给你一个\(n\)和\(k\),再给你一个长度为\(N\)的序列\(A\),从\(A\)中任意选择\(K\)个元素并将其删除,然后按原来的顺序将剩余的元素连接起来,形成一个新的序列\(B\),然后求这个序列的极差。解题思路错误解法一开始我想到了贪心:把\(A\)数组排个序,然后把开头
- 2024-07-31与陌生人聊天可能有益健康,也可能是新友谊的开始
与陌生人聊天可能有益健康,也可能是新友谊的开始与陌生人聊天可能有益健康,也可能是新友谊的开始It’sgoodtotalk’,sosomepeoplesay.WhenIcommuteintoLondon,therearecertainlyplentyofpeopleconversingontheirmobilephones–sometimestooloudl
- 2024-06-03Exercise 09
Exercise09Exercise09//6:46Workingwiththem,wecreatedoneofthebestyarnsintheworld,whichconsistsofthinmetallicalloys1wrappedaroundwithpolyesterfibersandcottonfibers.Theseyarnsweremadeinthesamemachineswhichweremaking
- 2024-05-26Three Locks To Rule Them All(三把锁统治一切)
ThreeLocksToRuleThemAll(三把锁统治一切)【英文原文】为了确保线程安全,特别是在服务器端,我们通常使用临界区(criticalsections)或锁(locks)来保护代码。在最近的Delphi版本中,我们引入了TMonitor特性,但我更倾向于信任操作系统提供的锁机制,这些锁是通过Windows临界区或POSIXfute
- 2024-05-20Reflective Journal III
1.Intheprocessofmakingthisdigitalstory,firstly,IlistedaoutlinetoclearwhatIneed.Secondly,IquestedforsomepicturesandbackgroundmusicontheInternet.Thirdly,Ireadthenarrativewritingandrecordedit.Finally,Imadeavideobyinsertin
- 2024-05-11Pulling Up the Seedlings to Help Them Grow
Iwasahumblefarmer,whosedailyliferevolvedaroundmyfields.Iplantedrice,hopingthattheywouldgrowquicklyandbringmethejoyofabountifulharvest.However,lookingatthosetendergreenseedlingsgrowingsoslowly,Ialwaysfeltasenseo
- 2024-04-20Computer Basics 03b - Mouse tutorial
Amouseisahandhelddevicethatletsyoupointtoobjectsonthescreen,clickthem,andmovethem.Takealookatthediagrambelowtolearnthedifferentpartsofatypicalmouse.Toscrollthroughthislesson,youcanuseyourkeyboard's down
- 2024-04-16信管 英文题目记录
2024-4-16Whyis---(programming)---fun?编程为什么有趣?Whatkindofhappinessdoitspractitionersexpectinreturn?作为回报,其从业者期望得到什么样的快乐?Thefirstisthesheerjoyofbuildingthings.首先是一种创建事物的纯粹快乐。Justaschildrenenjoypla
- 2024-04-11Rust Reference Cycles: Resolving and Avoiding them
InRust,referencecyclesoccurwhentwoormoreobjectsmutuallyreferenceeachother,formingacircularchain.Inthissituation,thereferencecountbetweenobjectsneverbecomeszero,leadingtomemoryleaksandresourceleaks.Thisblogpostwilldi
- 2024-04-052024-04-05 闲话
KlayThompsondidaverygojobattoday'sNBAregularseasonmatch.Anaudiencecommented"春风若有怜花意,可否许我再少年"onHuPuapp.Ithinkthequoteisveryfittingbecauseit'sspringnowinTianjin.Clustersofflowersarequiteattractiveto
- 2024-03-21PTA:7-68 Redemption
作者 郭天宸单位 山东大学(威海)Iamdreadfullysorryforyourbadexperience,suchalownumberofsubmissionsaswellaspassratesandmy inSHIZHANYI.Isetupsomechallengingdatapointsandsomealittltbithardproblems.Ifyouareintere
- 2024-02-27[ABC331G] Collect Them All 题解
洛谷传送门AT传送门\(\textbf{Statement.}\)有\(M\)种颜色,用\(1\simM\)编号,每次抽奖抽中第\(i\)种颜色的概率为\(\frac{c_i}{N}\),其中\(\sumc_i=N\),求抽中每种颜色至少一次的期望次数。\(1\leM\leN\le2\times10^5\)。\(\textbf{Solution.}\)发现直接求不好
- 2024-02-24UJC日报038.NBEZ生存指北(高一下)
0:寒假大作战承接上文全是作业,太快乐了虽然说没有提前开学这种缺德行为但19号交上选课表还是有点早了吧……(然后我选课表不知道为什么找不到了)距离寒假结束还有一周时,我的精神状态就变成了二战里的政委满脑子都是把作业彻底解决掉(带头冲锋)然后又有很炸裂的事情发生了仅仅半
- 2023-12-10AtCoder Beginner Contest 331 G - Collect Them All【概率期望+容斥+多项式】
题目链接:ABC331_G写在前面将来如果回顾这道题,建议自己看完题意一定先重新推一遍。如果还是不够熟练,多去做一些同类型的题目吧。题意:盒子里有\(N\)张卡片,每张卡片上写着一个数字,数字的范围是\(1,...,M\),写着数字\(i\)的卡片有\(C_i\)张\((C_i>0)\)。有放回地抽取卡片,每