杂乱的一坨
hehedad
这个作者很懒,什么都没留下…
展开
-
LYX的代码能力恢复计划
一年没写代码的LYX已经是个废人了。 现在开始每周打lc恢复恢复实力。。 5695. N 次操作后的最大分数和 给你nums,它是一个大小为2 * n的正整数数组。你必须对这个数组执行n次操作。 在第i次操作时(操作编号从1开始),你需要: 选择两个元素x和y。 获得分数i * gcd(x, y)。 将x和y从nums中删除。 请你返回n次操作后你能获得的分数和最大为多少。 函数gcd(x, y)是x和y的最大公约数。 这是一个简...原创 2021-03-21 00:49:20 · 252 阅读 · 0 评论 -
HDU - 6444 Neko's loop(单调队列,思维)
Neko has a loop of size nn. The loop has a happy value aiai on the i−th(0≤i≤n−1)i−th(0≤i≤n−1) grid. Neko likes to jump on the loop.She can start at anywhere. If she stands at i−thi−thgrid, she will ...原创 2018-10-17 23:02:09 · 236 阅读 · 0 评论 -
SDNU_ACM_ICPC_2019_Winter_Practice_3rd
A - Replace To Make Regular Bracket Sequence You are given string s consists of opening and closing brackets of four kinds <>,{}, [], (). There are two types of brackets: opening and closing...原创 2019-01-28 16:13:00 · 451 阅读 · 0 评论 -
SDNU_ACM_ICPC_2019_Winter_Practice_8th(柳雨欣的十宗罪)解析~~
A - 柳予欣的暴食 POJ - 3254 状压dp入门 #include <cstdio> #include <iostream> #include <cstring> using namespace std; const int mod = 100000000; #define ll long long int int mp[1...原创 2019-02-17 00:46:53 · 599 阅读 · 0 评论 -
有什么想要联系我的(问题也好,交流也好),欢迎来call我QQ675502062
111原创 2019-04-21 11:15:21 · 253 阅读 · 0 评论 -
2050编程竞赛五题弱鸡做出题目总汇 (1001,1002,1003,1004,1006)
先说一下有什么疑问的话直接下方留言就好~~弱鸡我一定尽力回复~ 开场白 Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 12147Accepted Submission(s): 3502 Problem Descr...原创 2019-04-14 14:10:00 · 2545 阅读 · 9 评论 -
The 19th Zhejiang University Programming Contest C - Robot Cleaner I
Robot Cleaner I Time Limit:1 Second Memory Limit:65536 KB Tired of tidying up his room, BaoBao decides to invent a robot clea...原创 2019-04-14 22:52:52 · 282 阅读 · 2 评论