Java入门及环境搭建 一、Java基本概念 Java开发环境 JVM:Java Virtual Machine(Java虚拟机) ? 源文件(myProgram.java)→编译器(Compiler) →字节码文件(myProgram.class)→解释器(Interpreter)→程序 JRE: ...
分类:
编程语言 时间:
2021-03-16 13:46:49
阅读次数:
0
np.choose(a, choices, out=None, mode='raise'):按照序号a对choices中的数进行选择。 a: index array,其中的数必须是整数 mode=‘raise’,表示a中数必须在[0,n-1]范围内 mode=‘wrap’,a中数可以是任意的整数(s ...
分类:
其他好文 时间:
2021-03-16 13:42:32
阅读次数:
0
font2 = {'family': 'Times New Roman', 'weight': 'normal', 'size': 12, } ax.legend(loc='lower center', bbox_to_anchor=(0.5, 1), fancybox=True, shadow=T ...
分类:
其他好文 时间:
2021-03-16 12:03:49
阅读次数:
0
DP——数字三角形模型 0. 数字三角形 题目地址: 题目思路: 二维基础DP,每个 \(f[i,j]\) 都是从 \(f[i-1,j-1]\) 和 \(f[i-1,j]\) 转移过来,取 \(max\) ,最后循环最下层,取 \(max\) 即为答案 代码: #include<iostream> ...
分类:
其他好文 时间:
2021-03-16 11:57:25
阅读次数:
0
Java基础语法 标识 单行标注 // 多行标注 /* */ 多做标注 关键字 public class Demo02 { public static void main(String[] args) { String ab="c"; System.out.print(ab); } } 注意语法中符 ...
分类:
编程语言 时间:
2021-03-16 11:57:10
阅读次数:
0
public class SimpleExpressDemo02 { public static void main(String[] args) { int a=10,b=6; System.out.println("改变之前的数是:a=" + a + ",b=" + b); a-=b++; // ...
分类:
其他好文 时间:
2021-03-16 11:51:45
阅读次数:
0
在类成员函数中如何调用pthread_create()呢? #incldue <pthread.h> int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void *), v ...
分类:
编程语言 时间:
2021-03-16 11:47:13
阅读次数:
0
class BigInt{ public: vector<int> a; BigInt operator+(const BigInt& b) { BigInt r; int s=max(a.size(),b.a.size()); for(int i=0;i<s;i++) { r.a.push_bac ...
分类:
其他好文 时间:
2021-03-16 11:45:03
阅读次数:
0
问题一 在这个程序下: //d=a+b //out=d+c always @(posedge Clk or negedge Rst_n) begin if(!Rst_n) out = 2'b0; else begin d <= a + b; out <= d + c; end end 问题:出现了o ...
分类:
其他好文 时间:
2021-03-15 11:35:38
阅读次数:
0
2019-2020 ICPC Northwestern European Regional Programming Contest (NWERC 2019) A. Average Rank 大意: n 个参赛选手将进行 w 轮的比赛,每轮比赛都会有一些选手加一分,选手按照分数从大到小排名(分数相等并 ...
分类:
其他好文 时间:
2021-03-15 11:33:30
阅读次数:
0