A #include <bits/stdc++.h> #define all(n) (n).begin(), (n).end() #define se second #define fi first #define pb push_back #define mp make_pair #define ...
分类:
其他好文 时间:
2020-09-11 16:00:21
阅读次数:
50
头文件:fuctional std::bind1st和std::bind2nd函数用于将一个二元算子转换成一元算子。 bind的意思是“绑定”,1st代表first,2nd代表second,它们的声明如下: //std::bind1st template <class Operation, clas ...
分类:
其他好文 时间:
2020-09-10 22:33:30
阅读次数:
35
1.js函数:函数的定义:function 函数名(形参列表){} 2.函数调用:函数名(实参列表) //计算1-10的和 /*function hello(){ var sum=0; for(var i=1;i<=10;i++){ sum=sum+i; } document.write(sum); ...
分类:
Web程序 时间:
2020-09-02 16:46:25
阅读次数:
57
CS代码 新增 GridLengthAnimation继承自AnimationTimeline public class GridLengthAnimation : AnimationTimeline { public static readonly DependencyProperty FromP ...
分类:
其他好文 时间:
2020-08-31 11:55:38
阅读次数:
49
STL有五个函数符自适应的相关概念: 自适应生成器 自适应一元函数 以适应二元函数 自适应谓词 自适应二元谓词 函数符成为自适应的原因是,它携带了标识参数类型和返回类型的typedef成员,这些成员分别是: result_type first_argument_type second_argumen ...
分类:
其他好文 时间:
2020-08-28 14:28:01
阅读次数:
64
Implement a method to find the second largest number in an array of ints. If the input array is empty or contains only a single number, the method mus ...
分类:
其他好文 时间:
2020-08-18 13:58:14
阅读次数:
82
一、概念 #只要函数内部包含有yield关键字,那么函数名()的到的结果就是生成器,并且不会执行函数内部代码 def func(): print(' >first') yield 1 print(' >second') yield 2 print(' >third') yield 3 print(' ...
分类:
其他好文 时间:
2020-08-17 17:48:59
阅读次数:
88
这道题的数据是不是有点水?还是题目描述有问题? #include<bits/stdc++.h> #define x first #define y second using namespace std; const int N=1005; typedef pair<int,int> PII; int ...
分类:
其他好文 时间:
2020-08-17 17:32:42
阅读次数:
60
Oracle数据库,查询所有会话的状态、等待类型及当前正在执行的SQL脚本 ...
分类:
数据库 时间:
2020-08-11 10:40:37
阅读次数:
107
通过域名跳转的方式获取参数(http://localhost:4200/second/110?productId=1&title=moon) 这种方式配置路由,其中:id是必需的参数,其它的是可配的,写在?后面: { path: 'second/:id', component: SecondComp ...
分类:
其他好文 时间:
2020-08-08 17:39:31
阅读次数:
110