摘要: # [Dashboard - Codeforces Round 776 (Div. 3) - Codeforces](https://codeforces.com/contest/1650) ## A Deletions of Two Adjacent Letters **题意:看看与题目给的字符一 阅读全文
posted @ 2023-08-05 00:14 north_h 阅读(38) 评论(0) 推荐(0)
摘要: # [Dashboard - Codeforces Round 827 (Div. 4) - Codeforces](https://codeforces.com/contest/1742) ## A Sum 简单题 ```c++ void solve() { int a, b, c; cin >> 阅读全文
posted @ 2023-08-03 23:56 north_h 阅读(35) 评论(0) 推荐(0)
摘要: # [传送门](https://codeforces.com/contest/1851) ## A Escalator Conversations 读懂题意即可 ``` /* Author : north_h File : A.cpp Time : 2023/7/26/12:32 _ _ _ _ _ 阅读全文
posted @ 2023-07-30 23:07 north_h 阅读(34) 评论(0) 推荐(0)
摘要: 传送门 A There Are Two Types Of Burgers 简单的枚举每一种情况,来贪心的选择 // // Author : north_h // File : A.cpp // Time : 2023/7/24/11:59 // _ _ _ // _ __ ___ _ __| |_| 阅读全文
posted @ 2023-07-27 09:00 north_h 阅读(9) 评论(0) 推荐(0)
摘要: 传送门 A 雨 签到题,可惜我还多打了一个空格,不好说 /* Author : north_h File : B.cpp Time : 2023/7/26/14:58 _ _ _ _ __ ___ _ __| |_| |__ | |__ | '_ \ / _ \| '__| __| '_ \ | ' 阅读全文
posted @ 2023-07-27 09:00 north_h 阅读(6) 评论(0) 推荐(0)
摘要: 传送门 A Points in Segments 直接把给出区间上的每一个放入set里,最后输出不在set里面的就行 // // Author : north_h // File : B.cpp // Time : 2023/7/21/11:51 // _ _ _ // _ __ ___ _ __| 阅读全文
posted @ 2023-07-22 09:00 north_h 阅读(9) 评论(0) 推荐(0)
摘要: 二维树状数组 lowbit函数 int lowbit(int x) { return x & (-x); } 修改以及建树的函数 void add(int x,int y,int k) { for (int i = x; i <= n; i += lowbit(i)) { for (int j = 阅读全文
posted @ 2023-07-18 09:00 north_h 阅读(16) 评论(0) 推荐(0)
摘要: 传送门 A Number Transformation 赛时做复杂了,其实就是两种情况,x大于y或者x不能整除y的情况下不行,能整出的情况下直接输出1和x/y即可写复杂了,得亏数据范围小不然感觉容易挂 // // Author : north_h // File : A.cpp // Time : 阅读全文
posted @ 2023-07-18 09:00 north_h 阅读(12) 评论(0) 推荐(0)
摘要: 传送门 A Telephone Number standard 找到第一个8所在的位置即可,最后判断一下,如果没有找到或者第一个8所在的位置后面的数不够11个就不行 #include<bits/stdc++.h> #define IOS ios::sync_with_stdio(false),cin 阅读全文
posted @ 2023-07-17 09:00 north_h 阅读(13) 评论(0) 推荐(0)
摘要: 传送门 A 你也喜欢数学吗 B Middle C 硬币游戏 D 松鼠回家 就是一个二分+最短路,二分答案,用二分的答案去跑最短路,跑最短路的时候要加限制条件,就是所经过的每个点所在的权值必须严格下于等于二分的答案,开个dis数组记录路径,最后判断终点 是否能够到达,记得把dis数组初始化为负无穷。 阅读全文
posted @ 2023-07-16 09:00 north_h 阅读(17) 评论(0) 推荐(0)