链接:https://pintia.cn/problem-sets/994805046380707840/problems/994805073643683840 思路:最短路的变式题 dijk 中vis表示是否被当作过最小点,因为堆中已经有这个点了但是没有被当作最小点过,所有堆中可能存在多个同一个点 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-23 12:22:28   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    eval(str)函数很强大,官方解释为:将字符串str当成有效的表达式来求值并返回计算结果。所以,结合math当成一个计算器很好用。 eval()函数常见作用有: 1、计算字符串中有效的表达式,并返回结果 >>> eval('pow(2,2)') 4 >>> eval('2 + 2') 4 >>> ...
                            
                            
                                分类:
编程语言   时间:
2021-04-23 12:00:15   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    水题。 int h[]={129,130}; int w[]={25,27}; int main() { int T; cin>>T; while(T--) { int sex,height,weight; cin>>sex>>height>>weight; vector<string> res;  ...
                            
                            
                                分类:
其他好文   时间:
2021-04-23 11:57:55   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    ##L1-053 电子汪 (10 分) 据说汪星人的智商能达到人类 \(4\) 岁儿童的水平,更有些聪明汪会做加法计算。比如你在地上放两堆小球,分别有 \(1\) 只球和 \(2\) 只球,聪明汪就会用“汪!汪!汪!”表示 \(1\) 加 \(2\) 的结果是 \(3\)。 本题要求你为电子宠物汪做 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-22 16:22:33   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    \(\text{Problem}:\)多项式反三角函数 \(\text{Solution}:\) \[ \begin{aligned} (\arcsin A(x))'&=\cfrac{A'(x)}{\sqrt{1-A^{2}(x)}}\\ \arcsin A(x)&=\int\cfrac{A'(x) ...
                            
                            
                                分类:
其他好文   时间:
2021-04-22 15:58:43   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    问题描述 安装curl时候: The following packages have unmet dependencies: curl : Depends: libcurl4 (= 7.68.0-1ubuntu2.5) but 7.68.0-1ubuntu4 is to be installed E ...
                            
                            
                                分类:
系统相关   时间:
2021-04-22 15:55:24   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                
                    Date dNow = new Date(); //当前时间Date dBefore = new Date();Calendar calendar = Calendar.getInstance(); //得到日历calendar.setTime(dNow);//把当前时间赋给日历calendar.a ...
                            
                            
                                分类:
其他好文   时间:
2021-04-22 15:38:17   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                static void Main(string[] args) { var k = new Test() { ID = 1, Age = 15 }; T1 a = k; T2 b = k; a.show(); //Console.WriteLine(b.Age); b.show(); } } cla ...
                            
                            
                                分类:
其他好文   时间:
2021-04-22 15:19:53   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                由于本人从事业务层代码编写,每次都是if...else... 面条代码较多,本次随笔主要是记录三种写代码方式,满足a条件,调用执行a的函数,满足b条件,调用执行b的函数,满足c条件,调用执行c的函数 三种代码实现方式都是实现同一功能,代码可以直接运行; 1.采用挂钩子形式,开放注册接口,系统运行时每 ...
                            
                            
                                分类:
其他好文   时间:
2021-04-22 15:13:05   
                                阅读次数:
0
                             
                         
                    
                        
                            
                            
                                1,基本数据类型 定义 :4类8种: 数值型: 整数型Byte,short ,int ,long 浮点数类型:float,double 布尔类型:boolean 引用数据类型:string 获取取值范围 注意点 2,数据之间的转换 ctrl+1提示错误 分类 1.自动转换(隐式类型转换) 小-》大  ...
                            
                            
                                分类:
编程语言   时间:
2021-04-21 12:25:03   
                                阅读次数:
0