- 2024-08-20D. Ice Cream Balls
题目链接:https://codeforces.com/contest/1862/problem/D题目:思路讲解:首先观察样例和题目不难看出,x个不重复的数字一共能组成x(x-1)/2个数组,而当有重复的数字出现的时候,就只能多组成一个数组,那思路就很明确了,先找出最多能有几个不重复的数字,之后再加上需要完成的数组和已有的数
- 2023-04-26How do I make a delicious lemon cheesecake?
Therearemanydifferentwaystoprepareadeliciouslemoncheesecake.Hereisonepopularrecipethatyoucantry:Ingredients:21/4cupsgrahamcrackercrumbs(about150crackers)3tablespoonssugar8ozcreamcheese,softened1cupgranulatedsugar1
- 2023-01-07[LeetCode] 1833. Maximum Ice Cream Bars
Itisaswelteringsummerday,andaboywantstobuysomeicecreambars.Atthestore,thereare n icecreambars.Youaregivenanarray costs oflength
- 2022-11-25S1 - Lesson 19 - 20
matterWhat'sthematter? childrenchildkidkids tiredI'mtired.Areyoutired?I'mnottired. boy thirstyHeisthirsty.Drinkwheneveryoufeel