多维数组 多维数组可以堪称数组的数组,比如二维数组就是一个特殊的一维数组,其中每一个元素都是一个以为数组 而且数组 int a[][]= new int[2][3]; public class ArrayDemo05 { public static void main(String[] args) ...
分类:
编程语言 时间:
2021-05-25 18:10:33
阅读次数:
0
public class TestDemo { public static void main(String[] args) { //打印三角形 for (int i = 1; i <= 5; i++) {0) //Definition for a binary tree node. struct TreeNode { int val; struct TreeNode *left; struct TreeNo ...
分类:
编程语言 时间:
2021-05-25 17:51:01
阅读次数:
0
public class ForDemo2 { public static void main(String[] args) { for (int i = 1; i <= 9; i++) { for (int j = 1; j <= i; j++) { System.out.print(i+ "*" ...
分类:
其他好文 时间:
2021-05-25 17:50:06
阅读次数:
0
第一节 数据完整性 作用:保证用户输入的数据保存到数据库中是正确的。 确保数据的完整性=在创建表时给表中添加约束 完整性的分类: 实体完整性:行 域完整性:列 引用完整性:学生表(学号,姓名) 成绩表(学号,科目,成绩) 科目表(科目编号,科目名称) 实体完整性:表示数据表中的数据要保证唯一性、不重 ...
分类:
其他好文 时间:
2021-05-25 17:45:08
阅读次数:
0
#include<bits/stdc++.h> using namespace std; typedef long long ll; namespace MCMF { const int MAXN = 10000, MAXM = 10000, INF = 0x7fffffff; int head[M ...
分类:
其他好文 时间:
2021-05-25 17:42:56
阅读次数:
0
O(logn)最长上升子序列并输出 +++ pre数组记录转移。 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 1e6 ...
分类:
其他好文 时间:
2021-05-25 17:36:48
阅读次数:
0
437. 路径总和 III class Solution: def pathSum(self, root: TreeNode, sum: int) -> int: dp = {} def search(root: TreeNode): if root: search(root.left) searc ...
分类:
编程语言 时间:
2021-05-24 17:23:14
阅读次数:
0
1、 利用浮点进行循环的时候,计算机不能保证计算机内部转换为二进制后不发生数据丢失,因此随着循环的进行,会发生误差的积累。 #include <stdio.h> int main(void) { int i; float x1 = - 0.01, x2; for(i = 0; i <= 100; i ...
分类:
编程语言 时间:
2021-05-24 17:20:46
阅读次数:
0
更相减损术 #include <stdio.h> int main(void) { int a = 0, b = 0, cnt = 0, min = 0, max = 0, sub = 1; scanf("%d%d", &a, &b); while(!(a & 0x1) && !(b & 0x1)) ...
分类:
编程语言 时间:
2021-05-24 17:03:25
阅读次数:
0