码迷,mamicode.com
首页 >  
搜索关键字:int 取值范围    ( 143948个结果
java基础——多维数组和稀疏数组
多维数组 多维数组可以堪称数组的数组,比如二维数组就是一个特殊的一维数组,其中每一个元素都是一个以为数组 而且数组 int a[][]= new int[2][3]; public class ArrayDemo05 { public static void main(String[] args) ...
分类:编程语言   时间:2021-05-25 18:10:33    阅读次数:0
打印5行正三角形
public class TestDemo { public static void main(String[] args) { //打印三角形 for (int i = 1; i <= 5; i++) {![](https://img2020.cnblogs.com/blog/2406104/20 ...
分类:其他好文   时间:2021-05-25 17:53:28    阅读次数:0
每日LeetCode - 101. 对称二叉树(C语言)
C语言 #include "stdbool.h" #define NULL ((void *)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)最长上升子序列并输出
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
算法打卡 week10
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
c语言 7-10
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
C语言实现更相减损术和辗转相除法及效率对比
更相减损术 #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
143948条   上一页 1 ... 54 55 56 57 58 ... 14395 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!