• 2024-08-28数据库-单表结构-建表语句
    1.mysql-uroot-p[root@localhost~]#mysql-uroot-pEnterpassword:WelcometotheMySQLmonitor.Commandsendwith;or\g.YourMySQLconnectionidis6Serverversion:5.1.73SourcedistributionCopyright(c)2000,2013,Oracleand/oritsaffiliate
  • 2024-07-16【贪心算法】力扣1833.雪糕的最大数量
    夏日炎炎,小男孩Tony想买一些雪糕消消暑。商店中新到n支雪糕,用长度为n的数组costs表示雪糕的定价,其中costs[i]表示第i支雪糕的现金价格。Tony一共有coins现金可以用于消费,他想要买尽可能多的雪糕。注意:Tony可以按任意顺序购买雪糕。给你价格数组costs和
  • 2023-01-07[LeetCode] 1833. Maximum Ice Cream Bars
    Itisaswelteringsummerday,andaboywantstobuysomeicecreambars.Atthestore,thereare n icecreambars.Youaregivenanarray costs oflength
  • 2022-10-27力扣(leetcode) 1833. 雪糕的最大数量(快速排序待更新......)
    题目在这:​​https://leetcode-cn.com/problems/maximum-ice-cream-bars/​​思路分析:题目比较好理解。我们可以直接使用排序函数对数组进行排序,然后从最便宜的开始买,买到
  • 2022-10-25Luogu 1833 樱花
    题目链接:​​传送门​​题目背景《爱与愁的故事第四弹·plant》第一章。题目描述爱与愁大神后院里种了n棵樱花树,每棵都有美学值Ci。爱与愁大神在每天上学前都会来赏花。爱与