```c //到达n阶只可能来自n-1和n-2,所以f(n)=f(n-1)+f(n-2) //1 2 3 5 8 13 int climbStairs(int n){ if (n == 1) return 1; if (n == 2) return 2; int sta = 0, sta1 = 1,... ...
                            
                            
                                分类:
其他好文   时间:
2019-09-09 23:04:32   
                                阅读次数:
176
                             
                    
                        
                            
                            
                                    "题目描述" 思路 代码 c++ include include long long n, m; struct { long long at[1000005], arr[1000005 1; this build(k build(k add(k, l, r, v); return; } int mi ...
                            
                            
                                分类:
其他好文   时间:
2019-09-09 22:35:24   
                                阅读次数:
106
                             
                    
                        
                            
                            
                                这一节来介绍分层的概念,在编写自动化测试时经常会遇到重复的操作,分层的概念就是把重复的操作封装成 “用户关键字”,这样就可以减少冗余。 百度搜索实例 同样以百度搜索为例,当我们多个用例都是使用百度搜索,只是每次输入的关键字不一样,那么就可以对百度的搜索操作进行封装。 *** Variables ** ...
                            
                            
                                分类:
其他好文   时间:
2019-09-09 22:20:49   
                                阅读次数:
81
                             
                    
                        
                            
                            
                                    XKC , the captain of the basketball team , is directing a train of nn team members. He makes all members stand in a row , and numbers them 1 \cdots n1 ...
                            
                            
                                分类:
其他好文   时间:
2019-09-09 19:45:42   
                                阅读次数:
103
                             
                    
                        
                            
                            
                                    43. 字符串相乘 给定两个以字符串形式表示的非负整数 num1 和 num2,返回 num1 和 num2 的乘积,它们的乘积也表示为字符串形式。 示例 1: 输入: num1 = "2", num2 = "3" 输出: "6" ...
                            
                            
                                分类:
其他好文   时间:
2019-09-09 19:27:24   
                                阅读次数:
241
                             
                    
                        
                            
                            
                                优化前 优化后 顺带复习下 字符串的常用方法 ...
                            
                            
                                分类:
其他好文   时间:
2019-09-09 19:16:37   
                                阅读次数:
101
                             
                    
                        
                            
                            
                                    题面:https://www.cnblogs.com/Juve/articles/11487699.html 队长快跑: 权值线段树与dp yy的不错 抛硬币: 乱搞dp ...
                            
                            
                                分类:
其他好文   时间:
2019-09-09 10:32:15   
                                阅读次数:
91
                             
                    
                        
                            
                            
                                1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 int fa[10001],z,n,m,x,y; 5 int getfather(int w) 6 { 7 if(fa[w]==w) 8 return w; 9 fa[w... ...
                            
                            
                                分类:
其他好文   时间:
2019-09-08 23:59:20   
                                阅读次数:
211
                             
                    
                        
                            
                            
                                    Long long ago, the sky and the earth were not separated, and the universe was chaotic. There was a giant named Pangu who slept for eighteen thousand y ...
                            
                            
                                分类:
其他好文   时间:
2019-09-08 22:13:07   
                                阅读次数:
133