随笔分类 - Codeforces
摘要:__ "Codeforces Round 591 (Div. 2, based on Technocup 2020 Elimination Round 1)" __ __ "A. CME" __ __思路:n为偶数答案为0 n为奇数答案为1 特判下n为2时答案为2__ AC代码 cpp includ
        阅读全文
                
摘要:__ "Codeforces Round 592 (Div. 2)" __ __ "A. Pens and Pencils" __ __思路:水题__ AC代码 cpp include include include include include include include include i
        阅读全文
                
摘要:__ "Educational Codeforces Round 75 (Rated for Div. 2)" __ __ "A. Broken Keyboard" __ __思路:最开始没搞清楚题意瞎搞 只需要判断前后两连续字符是否相同 不同则将前一个存入vector中 排序去个重输出即可__ A
        阅读全文
                
摘要:__ "Codeforces Global Round 5" __ __ "A. Balanced Rating Changes" __ __思路:$n$为偶数 则这n个数里面奇数的个数一定为偶数 那么就每次令一个答案为$\frac{a_i}{2} 1$ 另一个答案为$\frac{a_i}{2} +
        阅读全文
                
摘要:__ "Codeforces Round 596 (Div. 2, based on Technocup 2020 Elimination Round 2)" __ __ "A. Forgetting Things" __ __思路:$a$和$b$相等或者$a + 1 = b$或者$a = 9$ $
        阅读全文
                
摘要:__ "Codeforces Round 595 (Div. 3)" __ __ "A. Yet Another Dividing into Teams" __ __思路:排序后找是否有两个相邻的数差值为1即可__ AC代码 cpp include include include include i
        阅读全文
                
摘要:__ "D1. The World Is Just a Programming Task (Easy Version)" __ __思路:当时读错题了 没理解到题意 在那一直瞎写 暴力随便搞搞过了__ AC代码 cpp include include include include include 
        阅读全文
                
摘要:__ "Codeforces Round 593 (Div. 2)" __ __ "A. Stones" __ __思路:水题 先取第一堆中的每一个和先取第二堆中的每一个进行比较就行了__ AC代码
        阅读全文
                
摘要:__ "Codeforces Round 594 (Div. 2)" __ __ "A. Integer Points" __ __题意:给出若干个$y = x + p$ 和 $y = x + q$ 求它们交点坐标为整数的个数__ __思路:$y = x + p$ 与 $y = x + q$ 的交点
        阅读全文
                
摘要:同样还是补题 老年人晚上熬不起夜(其实是那天去找女朋友玩了回来晚了 A. Another One Bites The Dust 题意 给出a个"a" b个"b" c个"ab" 然后能组成如"ababa"形串的最大长度 水题 如果a == b的话 就刚好按若干个ab的顺序排 即最长长度为(a + c)
        阅读全文
                
摘要:前天晚上没做 昨晚上回去补了两道题 A题: 有两条地铁线路 一条正向1, 2, 3, ..., n 另一条逆向n, n-1, n-2, ..., 1 有两个人分别沿正向和逆向出发 给出总站数 还有两人的起点和终点 问两人是否能相遇 模拟+简单数学题啦 AC代码: B题 给出m对在1~n之间的数 现在
        阅读全文
                

浙公网安备 33010602011771号