public class jh_01_如何使用带参数的方法31 { public static void main(String[] args) { // 创建对象 ZhaZhiJi zzj = new ZhaZhiJi(); String str = "xiaojiejie"; // str.ch... ...
分类:
编程语言 时间:
2019-07-19 21:09:05
阅读次数:
118
"$CH~5E26~ ~$扑克牌:" (计数类DP) $solution:$ 唉,计数类DP总是这么有套路,就是想不到。 这道题我们首先可以发现牌的花色没有价值,只需要知道每种牌有 $(0,4]$ 张,牌的面值也不用管,只需要知道总共有 $(0,13]$ 种牌。然后我们就可以设出状态: $f[i][ ...
分类:
其他好文 时间:
2019-07-19 21:05:01
阅读次数:
181
SP5973 SELTEAM - Selecting Teams #include <bits/stdc++.h> using namespace std; typedef long long ll; inline ll read() { ll s=0; bool f=0; char ch=' '; ...
分类:
其他好文 时间:
2019-07-17 20:22:32
阅读次数:
121
[SDOI2010]捉迷藏 链接 "luogu" 思路 k dtree模板题 代码 cpp include define ls (t[u].ch[0]) define rs (t[u].ch[1]) define cmin(a,b) (a b?a=b:a) define cmax(a,b) (a b ...
分类:
其他好文 时间:
2019-07-17 19:07:47
阅读次数:
152
```java class Solution { public void reverse(char[] ch, int l ,int r) { for ( ; l ...
分类:
其他好文 时间:
2019-07-14 19:23:29
阅读次数:
120
1、背景 我:虽然通过继承减少了代码冗余,但是,每一个子类的构造函数还是需要给所有属性赋值的,很麻烦的。 师:这个好办,用base就行啦。 我:贝司?还吉他呢! 师:别急,首先我们先介绍下实例化子类对象的时候调用父类构造函数。 运行结果: 从上面代码分析可知: (1)执行 ChildClass ch ...
分类:
其他好文 时间:
2019-07-14 09:37:52
阅读次数:
118
#include #include using namespace std; int arr[10005]; int toNum(char ch) {return ch - '0';} int main() { ios::sync_with_stdio(false); cin.tie(0); str... ...
分类:
其他好文 时间:
2019-07-10 01:30:54
阅读次数:
169
CH是由俄罗斯“熊哥”开源的一套用于联机分析(OLAP)的列式数据库管理系统(DBMS),它通过针对性的设计,力图解决海量多维度数据的查询性能问题。小白程序员轻松上手,安装和操作就像mysql一样简单。 ...
分类:
Web程序 时间:
2019-07-09 09:22:20
阅读次数:
324
#include #include #include #define read(a) a=init() using namespace std; struct node{ long long fa,ch[2],data,size,cnt; }t[10000003]; long long n,root... ...
分类:
其他好文 时间:
2019-07-05 22:42:56
阅读次数:
140
#include using namespace std; typedef long long ll; const ll N=100001; ll sum[N'9') last=ch,ch=getchar(); while(ch>='0'&&ch>1; build(cnt=nr; } inline ... ...
分类:
其他好文 时间:
2019-07-01 20:04:45
阅读次数:
92