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
服务套和客户机的信息函数1、字节转换函数 在网络上面有着许多类型的机器,这些机器在表示数据的字节顺序是不同的, 比如i386芯片是低字节在内存地址的低端,高字节在高端,而alpha芯片却相反. 为了统一起来,在Linux下面,有专门的字节转换函数. unsigned long int htonl(u...
分类:
系统相关 时间:
2014-07-18 17:31:10
阅读次数:
294
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "hkk24.h"
typedef unsigned long U32;
typedef unsigned short U16;
type...
分类:
其他好文 时间:
2014-07-18 15:14:56
阅读次数:
398
刚刚开始想到一种很暴力但还行的方法,不过在和TK讨论的过程中引出了一个更好的算法#include#include#include#includeusing namespace std;long long n,m,k;long long check(long long x){ long long...
分类:
其他好文 时间:
2014-07-18 12:17:25
阅读次数:
221
long sd=1345185923140L;
Date dat=new Date(sd);
GregorianCalendar gc = new GregorianCalendar();
gc.setTime(dat);
java.text.SimpleDateFormat format =...
分类:
编程语言 时间:
2014-07-18 11:29:20
阅读次数:
188
题目链接:http://code.bupt.edu.cn/problem/p/417/
裸的01背包,不懂的同学可以看下本博客转载的《背包九讲》
代码:
#include
#include
#include
#include
#define N 11111
using namespace std;
int a[N];
long long b[N];
long long dp[N];
...
分类:
其他好文 时间:
2014-07-18 11:13:19
阅读次数:
137
[MySQL 5.6] MySQL 5.6 group commit 性能测试及内部实现流程http://mysqllover.com/?p=581尽管Mariadb以及Facebook在long long time ago就fix掉了这个臭名昭著的问题,但官方直到 MySQL5.6 版本才Fix掉...
分类:
数据库 时间:
2014-07-18 10:36:59
阅读次数:
380
alias ll='ls -alF'一:ls -a --all : do not ignore entries starting with . -A , --almost-all : do not list implied . and .. -l : use a long listing f...
分类:
系统相关 时间:
2014-07-18 10:36:44
阅读次数:
314