上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 比赛链接:https://codeforces.com/gym/104976 D.Operator Precedence 队友解的,想办法让第二个式子中括号内数值为1,所以就2,-1交替,最后一个选1可逆推,第一个为2*n-3 #include<iostream> #include<queue> # 阅读全文
posted @ 2024-10-24 15:55 长皆 阅读(33) 评论(0) 推荐(0)
摘要: 比赛链接:https://codeforces.com/contest/2013/problem A. Zhan's Blender 一次最多可以榨汁\(min(x,y)\)水果,答案得解 #include<iostream> #include<map> #include<set> #include 阅读全文
posted @ 2024-10-23 00:21 长皆 阅读(41) 评论(0) 推荐(0)
摘要: 比赛链接:https://codeforces.com/gym/105383/problem A. Animal Farm 找个最大pig,然后所有比他小的其他种类生物一直加就好了 #include<bits/stdc++.h> using namespace std; typedef long l 阅读全文
posted @ 2024-10-20 20:08 长皆 阅读(540) 评论(0) 推荐(0)
摘要: 比赛链接:https://codeforces.com/contest/2030 A. A Gift From Orangutan 肯定最小值和最大值放前面最好,答案得解 #include<iostream> #include<string.h> #include<map> #include<vec 阅读全文
posted @ 2024-10-20 00:42 长皆 阅读(841) 评论(0) 推荐(0)
摘要: 题目链接:https://codeforces.com/contest/1859 A. United We Stand 选最大的数即可注意题目输出格式 #include<iostream> #include<string.h> #include<map> #include<vector> #incl 阅读全文
posted @ 2024-10-18 16:42 长皆 阅读(65) 评论(0) 推荐(0)
摘要: 题目链接:https://codeforces.com/contest/1858 A. Buttons 从自身角度出发,我想赢就得保证我的按钮尽可能多所以,大家都优先按\(c\),然后分析先后顺序即可 #include<iostream> #include<string.h> #include<ma 阅读全文
posted @ 2024-10-17 23:42 长皆 阅读(37) 评论(0) 推荐(0)
摘要: 比赛链接:https://codeforces.com/contest/2025 A. Two Screens 看前面最长相同前缀,如果有就前缀长+1+剩余长度,否则直接两个字符串长度相加 #include<iostream> #include<string.h> #include<map> #in 阅读全文
posted @ 2024-10-15 15:50 长皆 阅读(121) 评论(0) 推荐(0)
摘要: 题目链接:https://codeforces.com/contest/1882 A. Increasing Sequence 从1开始慢慢和\(a[i]\)的所有值比较,注意最后一个位置特判下 #include<iostream> #include<string.h> #include<map> 阅读全文
posted @ 2024-10-13 20:38 长皆 阅读(61) 评论(0) 推荐(0)
摘要: A. Simple Palindrome aeiou,如果这里后面+u则会多出2,+o则会多3,通过分析加相同的字母比加之前存在的不同字母赚 发现同一个太多了,又会增太大,遂平均分配,使增多幅度上升的缓慢 #include<bits/stdc++.h> using namespace std; ty 阅读全文
posted @ 2024-10-10 14:02 长皆 阅读(30) 评论(0) 推荐(0)
摘要: 题目链接:https://qoj.ac/contest/1480 这次有个强队去讲课,偶幸校队赛时第一 C - Catch You Catch Me 队友写的,签到题吧? #include<bits/stdc++.h> #define endl '\n' using namespace std; t 阅读全文
posted @ 2024-10-10 13:41 长皆 阅读(20) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页