Description 每头牛都想成为牛群中的红人。给定n头牛和m个有序对(a,b),(a,b)表示牛a认为牛b是红人。该关系有传递性,所以如果牛a认为牛b是红人,牛b认为牛c是红人,那么牛a认为牛c也是红人。求被其他所有牛认为是红人的牛的总数 Input 第一行两个整数n和m表示牛数和关系数,之后 ...
                            
                            
                                分类:
编程语言   时间:
2020-07-29 14:48:03   
                                阅读次数:
65
                             
                    
                        
                            
                            
                                题意: 给定一张有向图,每个点有权值 \(fun[i]\) ,每条边有权值 \(time[i]\) 要求找出一个环,使得环上所有点的点权和除以所有边的边权和最大 解: 首先,显然,这是一道01分数规划题 参照分数规划的套路 假定当前二分的值为 \(mid\) ,有环 \(S=(\{v\},\ \{e ...
                            
                            
                                分类:
其他好文   时间:
2020-07-29 10:29:58   
                                阅读次数:
66
                             
                    
                        
                            
                            
                                1、VScode常用快捷键: 1 Ctrl + Enter //在光标下一行插入新行 2 Shift + Alt + Up //复制当前行至光标上一行 3 Shift + Alt + Down //复制当前行至光标下一行 4 不选中任何内容:Ctrl + C //复制当前行 5 Ctrl + V / ...
                            
                            
                                分类:
其他好文   时间:
2020-07-29 09:57:20   
                                阅读次数:
84
                             
                    
                        
                            
                            
                                #include <iostream> #include <map> using namespace std; typedef struct alertInfo { double alertUp; double alertDown; alertInfo(double up, double down) ...
                            
                            
                                分类:
其他好文   时间:
2020-07-28 22:25:22   
                                阅读次数:
75
                             
                    
                        
                            
                            
                                学习内容总结来自B站UP主"遇见狂神说"的Docker教学视频: https://www.bilibili.com/video/BV1og4y1q7M4 容器数据卷 作用: 能够实现容器的数据持久化以及数据共享同步(包括容器间和容器与主机间) 效果: 同步后, 能够直接在本机修改容器的配置文件等,  ...
                            
                            
                                分类:
其他好文   时间:
2020-07-28 14:30:53   
                                阅读次数:
66
                             
                    
                        
                            
                            
                                    round_up.cpp内容如下: #include <iostream> using namespace std; const int kAlign = 8; // kAlign show be powers of 2, say 2, 4 ,8, 16, 32, ... const int kAl ...
                            
                            
                                分类:
其他好文   时间:
2020-07-28 13:51:52   
                                阅读次数:
100
                             
                    
                        
                            
                            
                                #include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;const ll nl=1e5+5;/ ...
                            
                            
                                分类:
其他好文   时间:
2020-07-27 09:31:11   
                                阅读次数:
66
                             
                    
                        
                            
                            
                                    tap def tap(self: T, positions: List[Tuple[int, int]], duration: Optional[int] = None) -> T: """Taps on an particular place with up to five fingers, h ...
                            
                            
                                分类:
移动开发   时间:
2020-07-27 09:24:25   
                                阅读次数:
114
                             
                    
                        
                            
                            
                                #include<bits/stdc++.h>#define ll long long#define speed_up ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);using namespace std;const ll nl=1e5+5;/ ...
                            
                            
                                分类:
其他好文   时间:
2020-07-26 23:23:20   
                                阅读次数:
105
                             
                    
                        
                            
                            
                                    Ubuntu 20.04 Install Guest Additions for VirtualBox时有报错: This system is currently not set up to build kernel modules.Please install the gcc make perl  ...
                            
                            
                                分类:
系统相关   时间:
2020-07-26 23:00:43   
                                阅读次数:
94