码迷,mamicode.com
首页 >  
搜索关键字:too long    ( 24701个结果
【C语言】练习2-1
题目来源:《The C programming language》中的习题P27练习2-1: 编写一个程序以确定分别由signed及unsigned限定的char、short、int与long类型变量的取值范围。采用打印标准头文件中的相应值以及直接计算两种方式实现。后一种方法的实现较困难一些,因为要...
分类:编程语言   时间:2014-06-09 21:33:57    阅读次数:370
Codeforces Round #251 (Div. 2) B. Devu, the Dumb Guy
注意数据范围即可#include #include #include using namespace std;int main(){ long long n,x; cin >> n >> x; vector c(n); for(int i = 0 ; i > c[i]; ...
分类:其他好文   时间:2014-06-09 21:17:11    阅读次数:269
Codeforces Round #251 (Div. 2) C. Devu and Partitioning of the Array
注意p的边界情况,p为0,或者 p为k奇数+偶数 = 奇数奇数+奇数 = 偶数#include #include #include #include #include using namespace std;int main(){ int n,k,p; long a; cin >>...
分类:其他好文   时间:2014-06-09 20:20:23    阅读次数:243
jboss7开发配置指南
1Jboss7下载与安装1.1 官方下载路径:http://www.jboss.org/jbossas/downloads,目前最新稳定版本为7.1.1 final,分别有zip和gz两个版本,本文介绍xp下的zip版本。1.2目录介绍与启动把下载的zip包解压到相关目录,如目录E:/dev_too...
分类:其他好文   时间:2014-06-09 18:42:18    阅读次数:253
hibernate建表多对多建表
Student.java 1 package cn.itcast.hiberate.sh.domain; 2 3 import java.util.Set; 4 5 public class Student { 6 private Long sid; 7 private Stri...
分类:系统相关   时间:2014-06-09 15:58:47    阅读次数:421
poj 1095 Trees Made to Order
http://poj.org/problem?id=1095先求出n个节点数的二叉树的形态有多少种。卡特兰数f[n]=f[n-1]*(4*n-2)/(n+1);再递归求。 1 #include 2 #include 3 #include 4 #define ll long long 5 #de...
分类:其他好文   时间:2014-06-09 15:14:11    阅读次数:167
小型Basic编译器问题
# include # include # include # include # include //使用map解决一对一 的关系using namespace std;map mapdata;//数据存储typedef struct node{ long num; char ch1[20]; c...
分类:其他好文   时间:2014-06-08 20:26:01    阅读次数:235
zoj 1454 Employment Planning
【题解】:【代码】: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define LL long long 7 using namespace std; 8 LL dp[15][100005]; 9 LL N,h,uh,...
分类:其他好文   时间:2014-06-08 20:08:41    阅读次数:261
求解一元线性同余方程组模版
解法:直接上模版。 扩展欧几里德的模版: typedef long long LL; LL ex_gcd(LL a,LL b,LL &x,LL &y) { if(b==0) { x=1; y=0; return a; } LL d=ex_gcd(b,a%b,x,y); LL t=x; x=y;...
分类:其他好文   时间:2014-06-08 16:56:35    阅读次数:228
第四章 分治策略 4.1 最大子数组问题 (暴力求解算法)
/** * 最大子数组的暴力求解算法,复杂度为o(n2) * @param n * @return */ static MaxSubarray findMaxSubarraySlower(int[] n) { long tempSum = 0; int left = 0; int right = 0...
分类:其他好文   时间:2014-06-07 21:07:50    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!