一、数据类型 Java支持两种数据类型:基本类型和引用类型。基本类型有布尔(boolean)类型和数值类型,数值类型有整数类型(byte、short、char、int、long)和浮点数类型(float、double),其中char也称为字符类型,统称八大基本数据类型。byte型整数在内存中占8位....
分类:
编程语言 时间:
2014-07-19 16:37:25
阅读次数:
189
1,factorials[i] = i * factorials[i - 1];#include using namespace std;const int ArSize = 16;int main() {long long factorials[ArSize];factorials[1] = fa...
分类:
其他好文 时间:
2014-07-19 15:38:16
阅读次数:
202
1881. Long problem statementTime limit: 0.5 secondMemory limit: 64 MBWhile Fedya was writing the statement of the problem GOV Chronicles, he realized....
分类:
其他好文 时间:
2014-07-19 15:08:30
阅读次数:
214
一、套接字的地址结构. IPV4套接字地址结构通常也称为"网际套接字地址结构",它以sockaddr_in 命名;POSIX定义如下:#include struct in_addr{ unsigned long s_addr; /*32-bit IPv4 address ...
分类:
系统相关 时间:
2014-07-19 09:34:33
阅读次数:
408
GCD SUMTime Limit:8000/4000MS (Java/Others)Memory Limit:128000/64000KB (Java/Others)SubmitStatusProblem Description给出N,M执行如下程序:long long ans = 0,ansx ...
分类:
其他好文 时间:
2014-07-19 09:15:30
阅读次数:
234
1:值类型八大类型:整性—>byte(1字节),short(2字节),int(4字节),long(8字节); 浮点数—>float(4字节)--8位整,23位小数,1位符号;double(8字节)--11位整数,52位小数,1位符号 字符—>char(2字节)---汉语的原因吧 逻辑型—>bool(...
分类:
编程语言 时间:
2014-07-19 00:25:55
阅读次数:
198
下面得到这段代码可以用在很多地方:只需要自己修改下接Ok. 1 struct Matrix 2 { 3 long long mat[N][N]; 4 Matrix operator*(const Matrix m)const//定义矩阵乘法的运算符* 5 { 6 ...
分类:
其他好文 时间:
2014-07-19 00:22:01
阅读次数:
187
1.原题展示:一根棒子上有n个环(n 2 #include 3 #include 4 #define size 3 5 #define mod 200907 6 struct Mat 7 { 8 long long num[size][size]; 9 };10 Mat init,r;//定义全局变...
分类:
其他好文 时间:
2014-07-19 00:19:38
阅读次数:
202
题目:应用递归,将输入的二进制数转换为十进制。#include #include void binary_to_decimal(char *s, long dec){ if( *s == '\0' ) printf("Decimal: %ld\n",dec); else ...
分类:
其他好文 时间:
2014-07-18 18:23:50
阅读次数:
217
DescriptionRailway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…The Lunar New Year ...
分类:
其他好文 时间:
2014-07-18 18:17:12
阅读次数:
280