08 2024 档案
摘要:题目链接:Codeforces Round 968 (Div. 2) - Codeforces 总结:C题想到了,但是写成shi了,出得有点慢。 A. Turtle and Good String tag:签到 Solution:直接判断第一个字符是否与最后一个字符相等即可。 void solve(
阅读全文
摘要:题目链接:Codeforces Round 967 (Div. 2) - Codeforces 总结:B题没测试就交wa一发,C题一直没想到怎么回溯,哎。 A. Make All Equal tag:签到 Solution:找到相同元素的最大值,将其它所有元素删去。 void solve(){ ci
阅读全文
摘要:题目链接:AtCoder Beginner Contest 367 总结:发挥很一般,A一直wa。开场有点事,导致D也没debug出来。 A. Shout Everyday tag:模拟 Solution:注意 与 的不同情况即可。 void solve(){ int
阅读全文
摘要:题目链接:Educational Codeforces Round 168 (Rated for Div. 2) 总结:题目较简单,但是发挥很一般。A,B题一直读假题,卡了半个小时;C题用char存int,难绷了。 A. Strong Password tag:模拟 void solve() { s
阅读全文
摘要:题目链接:Pinely Round 4 (Div. 1 + Div. 2) 总结:被B卡了一年。 A. Maximize the Last Element tag:模拟 Description:给定一个长度为奇数的数组,每次可以删除两个相邻的元素,直到剩下一个元素为止,求该元素的最大值。 Solut
阅读全文