##思路 最长上升子序列的变形+记录路径 ##AC代码 #include<iostream> #include<cmath> #include<string.h> #include<algorithm> #include<stdio.h> #include<iomanip> #define inf ...
分类:
其他好文 时间:
2021-04-19 14:43:51
阅读次数:
0
opt_map函数中对于指定了select program的分析 从过滤器中进行map static int open_output_file(OptionsContext *o, const char *filename) open_output_file函数中根据stream_map进行创建输出 ...
分类:
其他好文 时间:
2021-04-19 14:39:12
阅读次数:
0
获取指定月份周明细 package com.ruoyi.ad.util; import java.text.SimpleDateFormat; import java.time.*; import java.time.temporal.ChronoUnit; import java.time.tem ...
分类:
编程语言 时间:
2021-04-19 14:36:00
阅读次数:
0
1.Ingress测试示例 1.定义一个deployment [root@k8s-master01 service-ingress]# cat nginx-test.yaml apiVersion: v1 kind: Service metadata: name: ingress-test labe ...
分类:
其他好文 时间:
2021-04-16 12:25:19
阅读次数:
0
1. 多态 多态 1.1 多态概述 代码示例: 动物类: public class Animal { public void eat(){ System.out.println("动物吃东西"); } } 猫类: 多态的前提有继承/实现关系,所以猫类要继承动物类。 public class Cats ...
分类:
编程语言 时间:
2021-04-16 12:17:46
阅读次数:
0
static关键字 被static修饰的成员变量属于类,不属于这个类的某个对象。(也就是说,多个对象在访问或修改static修饰的成员变量时,其中一个对象将static成员变量值进行了修改,其他对象中的static成员变量值跟着改变,即多个对象共享同一个static成员变量) 被static修饰的成 ...
分类:
编程语言 时间:
2021-04-16 12:10:29
阅读次数:
0
task1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main(){ int x, n; srand(time(0)); for(n=1 ; n<=N; n++){ x = rand() % 10 ...
分类:
其他好文 时间:
2021-04-16 12:04:07
阅读次数:
0
模拟cpu使用率 脚本: 可以将1个cpu-core打满 k.c #include <stdlib.h> int main() { while(1); return 0; } gcc -o out k.c ./out 查看top可以看到将1个cpu-core打满,可以根据需要,并发启动多个进程将多个 ...
分类:
其他好文 时间:
2021-04-16 12:03:28
阅读次数:
0
import org.junit.Test; public class TestMethods { @Test public void test() { System.out.println("hello world"); } } 1:首先需要导入import org.junit.test这个jar ...
分类:
编程语言 时间:
2021-04-16 12:01:06
阅读次数:
0
恢复内容开始 实验任务1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 int main() { int x, n; srand(time(0)); for(n=1; n<=N; n++) { x = ran ...
分类:
其他好文 时间:
2021-04-16 12:00:33
阅读次数:
0