码迷,mamicode.com
首页 >  
搜索关键字:long    ( 19145个结果
codechef Cleaning Up 解决问题的方法
After a long and successful day of preparing food for the banquet, it is time to clean up. There is a list of n jobs to do before the kitchen can be c...
分类:其他好文   时间:2015-10-23 20:09:33    阅读次数:275
2015.10.22
#includemain(){long int p;int n;double q;printf("--------------------------------------------------------------------\n");printf("2 to power n n 2 to ...
分类:其他好文   时间:2015-10-23 18:50:18    阅读次数:137
java基础 - 数据类型
1. 基本数据类型 1. 数值型 1. 整数 1. byte 2. short 3. int 4. long 2. 浮点 1. float 2. double 2. 字符型 char 3. 布尔型 boolean2....
分类:编程语言   时间:2015-10-23 18:05:53    阅读次数:151
Long.parseLong(String s) 其中s必须是数字形式的字符串,才能运用该函数转化为长整型。
1 public class ConverTo 2 3 { public static void main(String [] args) 4 { String numberIn =args[0]; 5 convertNum(numberIn);...
分类:其他好文   时间:2015-10-23 16:13:54    阅读次数:137
求pi 的公式
pi = 3.1415926.....下面用c 语言来求解PI现有公式(pi*pi)/6 = 1 + 1/(2*2) + 1/(3*3) + ... + 1/(n*n);#include double CalculatePi(unsign long n) {double s = 0.0; unsig...
分类:其他好文   时间:2015-10-22 23:45:08    阅读次数:252
POJ 2346 【DP】
题意:给一个正的不大于10的偶数n,求n个数字组成的数字串前n/2位和后n/2位的和相等的个数。思路:dp[i][j]由i位数组成的和为j的数字串的个数。dp[i][j]+=dp[i-1][j-k];最后排列组合一下。#includelong long dp[6][50];int main(){ ....
分类:其他好文   时间:2015-10-22 21:05:07    阅读次数:162
jdk7的新特性
在jdk7的新特性方面主要有下面几方面的增强:1.jdk7语法上 1.1二进制变量的表示,支持将整数类型用二进制来表示,用0b开头。 // 所有整数 int, short,long,byte都可以用二进制表示 // An 8-bit 'byte' value: byte aByte = (b...
分类:其他好文   时间:2015-10-22 21:04:01    阅读次数:302
选择排序的openMP实现
// test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include "omp.h"#include using namespace std;void swap(long *a, long *b); ...
分类:编程语言   时间:2015-10-22 13:52:54    阅读次数:259
HDU 3123 GCC
先观察一下数据范围0 #include#include#include#includeusing namespace std;int T;int MOD;long long a[1000000+5];long long ans;char s[1000];int Min;int n;int main(...
分类:其他好文   时间:2015-10-22 09:12:37    阅读次数:148
bzoj 1033
#include#include#include#include#include#include#include#include#include#include#include#include#define LL long long#define inf 0x7fffffff#define pa p...
分类:其他好文   时间:2015-10-22 06:45:11    阅读次数:447
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!