当前位置:网站首页>2022.07.06 A 组总结
2022.07.06 A 组总结
2022-07-15 21:06:00 【STJqwq】
2022.07.06 A 组总结
总结:认真审题。
A
题意:给定一个有向图,每条边 x → y x\to y x→y ,如果 y y y 也能通过图上的路径到达 x x x 那么这是一条“好边”,边权即为 z z z ;否则这是一条“坏边”,边权为 2 z 2z 2z 。求经过不超过 k k k 条坏边的最短路径。
做法:题意介绍的不清楚,原来构造之后也是一个有向图。我们 Floyd 跑一遍测算通透性,然后再以“坏边”建立 k k k 层的一张图。然后再用 dijkstra 算法跑一遍。
总结:题意要看完整……
代码:代码\GM1782\20220706\A\A.cpp 。
B
收藏在 思维套路\字符串\哈希\有趣的套路\GM3337_20220706.md 里面。
代码:代码\GM3337\20220706\B\B.cpp 。
C
收藏在 思维套路\图论\树上问题\启发式合并\启发式合并笔记.md 里面。
代码:代码\GM3337\20220706\C\C_test2.cpp 。
D
题意:区间异或上某个数,求区间异或某个数的最小值。
做法:听题解的转换,可以暴力处理。不是很懂这个转化,所以还需研究一下 博弈论。
总结:需要记录一些结论,以备不时之需。
边栏推荐
- What the server process needs to do during the user session.
- Digital twins equip the reservoir with "smart brain"
- AWS Config
- Network information viewing and configuration
- Mysql——ER模型
- Can communication (2) - can communication protocol layer
- 透视北交所100家上市公司:中年理工男的新世界
- 笔试强训第15天
- Common operators and operator priority
- Recursive function, factoring
猜你喜欢

Hcip (day 1) (HCIA knowledge review)
![微服务架构 | 服务隔离 - [Gateway]](/img/02/4d882a5a13876645ef40ed6dabec3e.png)
微服务架构 | 服务隔离 - [Gateway]

手动上传表单数据+图片文件功能

Jd.com: how does redis realize inventory deduction? How to prevent goods from being oversold?

Offline installation of MySQL 5.7 for Linux

数字孪生电网发展历程
![2022-7-15 Leetcode 151. Reverse the words in the string - [split from back to front]](/img/46/6bb2c4e59b2328482b92619783f0bd.png)
2022-7-15 Leetcode 151. Reverse the words in the string - [split from back to front]
Shiro integrates redis to realize distributed session processing

The application of digital twins in cities

nodeJS中npm简介与使用方法
随机推荐
Can communication (2) - can communication protocol layer
(board) trie tree template acwing835 Trie string statistics
In the first half of 2022, 40 new unicorns, 30% of which have been invested by Sequoia China
VLAN与三层交换机
MySQL的主从复制原理是什么
JUC joint contracting - cyclicbarrier
(great DFS) Luogu p1219 [usaco1.5] eight queens checker challenge
手动上传表单数据+图片文件功能
再议单例模式和静态类
小程序媒体组件-1
Jd.com: how does redis realize inventory deduction? How to prevent goods from being oversold?
Ehcache 详细解读
Which do you choose between code coverage and test coverage?
10个打开了我新世界大门的 WebAPI
笔试强训第15天
Security access of UDS common services 0x27
Blindly using multithreading can easily lead to oom
Laravel executes tasks asynchronously
Mysql基础学习Day05
Shiro integrates redis to realize distributed session processing