05 2023 档案

摘要:股票买卖 V 给定一个长度为 N 的数组,数组中的第 i 个数字表示一个给定股票在第 i 天的价格。 设计一个算法计算出最大利润。在满足以下约束条件下,你可以尽可能地完成更多的交易(多次买卖一支股票): 你不能同时参与多笔交易(你必须在再次购买前出售掉之前的股票)。 卖出股票后,你无法在 阅读全文
posted @ 2023-05-27 17:46 onlyblues 阅读(23) 评论(0) 推荐(0) 编辑
摘要:B. Complete The Graph ZS the Coder has drawn an undirected graph of n vertices numbered from 0 to n1 and m edges between them. Each edge of 阅读全文
posted @ 2023-05-25 14:46 onlyblues 阅读(44) 评论(0) 推荐(0) 编辑
摘要:F. Ira and Flamenco Ira loves Spanish flamenco dance very much. She decided to start her own dance studio and found n students, ith of whom has le 阅读全文
posted @ 2023-05-22 09:07 onlyblues 阅读(109) 评论(0) 推荐(1) 编辑
摘要:G. Hits Different In a carnival game, there is a huge pyramid of cans with 2023 rows, numbered in a regular pattern as shown. If can 92 is hit in 阅读全文
posted @ 2023-05-08 14:48 onlyblues 阅读(84) 评论(0) 推荐(0) 编辑
摘要:D. Fish Graph You are given a simple undirected graph with n nodes and m edges. Note that the graph is not necessarily connected. The nodes are la 阅读全文
posted @ 2023-05-06 20:19 onlyblues 阅读(130) 评论(0) 推荐(0) 编辑
摘要:D. Running Miles There is a street with n sights, with sight number i being i miles from the beginning of the street. Sight number i has beaut 阅读全文
posted @ 2023-05-06 09:05 onlyblues 阅读(165) 评论(0) 推荐(1) 编辑

Web Analytics
点击右上角即可分享
微信分享提示