码迷,mamicode.com
首页 >  
搜索关键字:int-max    ( 1549个结果
c# 随机数生成
//定义随机数产生函数 static int GetRandomNumber(int min, int max) { int rtn = 0; Random r = new Random(); byte[] buffer = Guid.NewGuid().ToByteArray(); int iSe ...
分类:Windows程序   时间:2019-12-24 20:37:02    阅读次数:78
递归解决问题——八皇后
这是一个比较经典的算法问题了,也是用到了递归思路,采用了递归回溯法 public class Queue8 { int max = 8; int[] array = new int[max]; static int count = 0; static int judgeCount = 0; publ ...
分类:其他好文   时间:2019-12-24 13:28:11    阅读次数:61
入门模拟A1009 Product of Polynomials(25)
2019-12-21 14:29:21 #include <bits/stdc++.h> #include<math.h> using namespace std; const int MAX_LEN = 10001; int main(){ /*//A多项式,B多项式: vector<int,do ...
分类:其他好文   时间:2019-12-21 15:18:15    阅读次数:66
c语言中的数据类型的最大最小值
#include <float.h>#include <limits.h>int n1 = INT_MIN;int n2 = INT_MAX;float f1 = FLT_MIN;float f2 = FLT_MAX;double d1 = DBL_MIN;double d2 = DBL_MAX;l ...
分类:编程语言   时间:2019-12-17 22:20:08    阅读次数:121
线程池的使用
public class ThreadPoolExecutorUtils { private static final int CORE_POOL_SIZE = 10; private static final int MAX_POOL_SIZE = 20; private static final ...
分类:编程语言   时间:2019-12-17 20:39:55    阅读次数:90
2019.12.11 java练习
class Demo01 { public static void main(String[] args) { //数组求最大值 int[] arr={1,2,3,4,5,6,7,8,9}; int max=arr[0]; for(int i=0;i<arr.length;i++){ if(arr[ ...
分类:编程语言   时间:2019-12-11 09:49:30    阅读次数:74
选择排序1
思路:每次找出数组中最大的数,放到后面。 1 #include<stdio.h> 2 3 int max_index(int a[], int len); 4 int main(void) 5 { 6 int a[] = { 2,45,6,12,87,34,90,24,23,11,65 }; 7 i ...
分类:编程语言   时间:2019-12-11 09:35:49    阅读次数:79
2018-2019 ACM-ICPC, Asia East Continent Final L Eventual … Journey
#include<iostream> using namespace std; const int MAX=2e5+10; int cnt[MAX]; int ans[MAX]; int a[MAX]; int main() { int n,m,zero=0,one=0; cin>>n>>m; fo ...
分类:其他好文   时间:2019-12-07 14:25:29    阅读次数:93
二分查找算法
/** * 二分查找算法 * @param args */ public static void main(String[] args) { int []arr = {1,2,3,4,5,6,7,8,9,10,12,14,15}; int min = 0; int max = arr.length- ...
分类:编程语言   时间:2019-12-05 15:59:58    阅读次数:102
《趣学算法》动态规划
2019-11-30 10:05:54 #include <bits/stdc++.h> #include <stdlib.h> #include <stdio.h> using namespace std; #define maxn 10005 #define M 105 int c[M][max ...
分类:编程语言   时间:2019-11-30 11:50:39    阅读次数:61
1549条   上一页 1 ... 12 13 14 15 16 ... 155 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!