- 2024-11-10题解:[ABC379D] Home Garden
[ABC379D]HomeGarden题意:开始有一个空集,有\(Q\)次操作,每次有标识数\(op\):若\(op\)为\(1\):为集合添加一个元素\(0\)。若\(op\)为\(2\):输入\(T\),为集合内所有元素增加\(T\)。若\(op\)为\(3\):输入\(H\),删除集合内不小于\(H\)的元素,并输出删除元素个数。
- 2024-11-09题解:AT_abc379_d [ABC379D] Home Garden
难度严格小于C题。你考虑每盆花被种植的时间一定单调不降,这启示我们去用二分。具体的,我们用一个数组\(a\)表示当前所有的花的种植时间,并记录一个当前时间\(t\)。对于每个1操作都在数组后面加上个元素\(t\),对于\(2\)操作让\(t\leftarrowt+T\)。对于操作3,能够摘取的
- 2024-08-01CF1987C Basil's Garden 题解
CF1987CBasil'sGarden题解壹·题目描述有$n$个数字排成一排,接下来每隔一秒进行一次操作:如果$i=n$或$h_i>h_{i+1}$,则第$i$盆花的高度$h_i$将变为$\max(0,h_i-1)$。请问至少经过多少秒后,所有的数字都为$0$。贰·思路分析可以知道,$h_i\leq1$时$h_i←0$。显然可
- 2024-07-02C. Basil's Garden
原题链接题解1.最后一朵花,变成零需要\(h_n\)阵风2.倒数第二朵花,如果高度大于\(h_n\),则需要\(h_{n-1}\)阵风,否则需要\(h_n+1\)阵风3.倒数第三朵花,如果高度小于等于\(h_{n-1}\),则需要\(t_{n-1}+1\)阵风;否则,如果高度降到\(h_{n-1}\)时,第\(n-1\)朵花还没有开始下降
- 2024-05-18Narrative writing revision
TheGardenofUnexpectedWondersLilyisabeautifulgirl,shehasalongcurvedblondehair,sheisoftencasuallytiedintoaponytail,itlooksverycool.Hereyeswereasbrightasstars,fullofcuriosityandexpectationfortheworld.Hernoseisst
- 2024-05-11The Garden of Unexpected Wonders
Scene1:(AyounggirlnamedLilystandsinherbackyard,staringcuriouslyatapatchofovergrownweeds.)Lily(whispering):I'venevernoticedthispartofthegardenbefore.Whatcouldbehidinghere?(Lilycarefullypullsawaysomeoftheweeds
- 2024-05-07Garden
Garden题目描述有一个\(n\timesm\)的花园,每一个地块给出一个高度。下了一场大雨,认为花园中每一个格子有无限格高积水。花园周围有排水渠,高度为\(0\)将水排走。水在四联通块中从高往底流。求最后的积水量。解题思路考虑如何求每一个格子最终的积水高度(包括地块高度)。其等
- 2023-08-20dasctf2023 june toka garden & bios-mbr os 启动流程
前言被纯真拉来看题楽。日常忏悔没有学好操作系统。借着dasctf6tokagarden了解了下操作系统bios-mbr的启动流程。bios-mbr启动流程启动(boot)一词来自于一句谚语"pulloneselfupbyone'sbootstraps"("拽着鞋带把自己拉起来")这当然是不可能的事情。最早的时候,工程师
- 2023-07-18python与园林专业
Python与园林专业引言作为一名经验丰富的开发者,我非常乐意教会刚入行的小白如何实现"Python与园林专业"。本文将会详细介绍整个实现过程,并附上相应的代码和注释,以供参考。流程概述下面是实现"Python与园林专业"的流程概述:步骤描述1学习Python基础知识2了解园林
- 2023-02-21[LeetCode] 1326. Minimum Number of Taps to Open to Water a Garden
Thereisaone-dimensionalgardenonthex-axis.Thegardenstartsatthepoint 0 andendsatthepoint n.(i.eThelengthofthegardenis n).Thereare
- 2023-01-12[LeetCode] 1326. Minimum Number of Taps to Open to Water a Garden 灌溉花园的最少水龙头数目
Thereisaone-dimensionalgardenonthex-axis.Thegardenstartsatthepoint 0 andendsatthepoint n.(i.eThelengthofthegardenis n).Thereare
- 2023-01-02S2 - Lesson 8 - The best and the worst
Words competitioncompeterace neat pathneatpathsthepathtothesuccess woodenwood pool ContentThebestandtheworstJoeSande
- 2022-10-26从obsidian发布到博客
发布到cnblogs搜了一圈没找到直接的发布到cnblogs博客的办法,我想应该可以通过修改"https://github.com/oleeskild/digitalgarden/tree/main/src"这个digitalgarden来
- 2022-10-052020ICPC上海I - Sky Garden
思维[I-SkyGarden_第45届国际大学生程序设计竞赛(ICPC)亚洲区域赛(上海)(重现赛)@hzy0227(nowcoder.com)](https://codeforces.com/gym/103202/problem/I)题意有\(n\;(1<
- 2022-08-25[Oracle] LeetCode 1326 Minimum Number of Taps to Open to Water a Garden
Thereisaone-dimensionalgardenonthex-axis.Thegardenstartsatthepoint0andendsatthepointn.(i.eThelengthofthegardenisn).Therearen+1