码迷,mamicode.com
首页 >  
搜索关键字:2011. long statement    ( 22237个结果
最长不下降序列解决算法
#include "stdafx.h"#include#include#includeusing namespace std;long long d[100000],a[100000];long long len,i,k,n;long long min(long long t){ long long...
分类:其他好文   时间:2014-05-08 14:05:19    阅读次数:261
codechef The Morning Commute 题解
The Morning Commute The Chef commutes to work every day using the city's underground metro. The schedule for the trains has recently been changed and he wants to know how long it will take to tra...
分类:其他好文   时间:2014-05-07 15:37:11    阅读次数:406
iOS编程基础: Hello World App是如何运作的?
翻译 By Long Luo 原文链接:iOS Programming Basic: How Does the Hello World App Work? 译者注: 1. 由于这是技术文章,所以有些词句使用原文,表达更准确。 2. 由于水平有效,有些地方可能翻译的不够准确,如有不当之处,敬请批评指正. 我希望你享受了第一个iOS编程教程,同时已经创造了你的第一个App。在进入下...
分类:移动开发   时间:2014-05-07 08:41:41    阅读次数:381
zoj3781 Paint the Grid Reloaded --- 缩点 bfs
╮(╯▽╰)╭水题 相连的相同色块缩成点,和相邻的不同色块建边。 以每一个点为起点bfs,求最小答案。 #include #include #include #include #include #include #include #include #include #define inf 0x3f3f3f3f #define ll long long #define...
分类:其他好文   时间:2014-05-07 08:15:59    阅读次数:328
zoj 3612 Median (splay)
题目大意: 添加和删除一个数,然后输出中位数。 简单的Splay   维护Splay上有多少个节点就可以了 #include #include #define inf 1LL<<60 #define maxn 222222 #define keyTree (ch[ch[root][1]][0]) using namespace std; typedef long...
分类:其他好文   时间:2014-05-07 07:46:42    阅读次数:405
《linux 内核完全剖析》get_free_page(void)
unsigned long get_free_page(void) { register unsigned long __res asm("ax"); repeat:     __asm__("std ; repne ; scasb\n\t"         "jne 1f\n\t"         "movb $1,1(%%edi)\n\t"         "sall $12...
分类:系统相关   时间:2014-05-07 05:38:18    阅读次数:515
java学习2-java的基本数据结构
1、java提供了8中数据结构1、byte -----有符号--------1个字节2、int------有符号----------4个字节3、long------有符号--------8个字节4、char------有符号---------2个字节5、float-----有符号-------4个字节6、double-----有符号-----8个字节7、boolean-----只能取值true、f...
分类:编程语言   时间:2014-05-07 05:08:36    阅读次数:313
python中的字符串处理
1.字符串转换 s.lower()   转为小写 s.upper()  转为大写 s.swapcase()   大写转为小写,小写转为大写 s.capitalize()  首字母大写 转换为int类型  string.atoi(s)   或者int(s) 转换为float类型  string.atof(s)  或者float(s) 转换为long类型   string.atol(s)...
分类:编程语言   时间:2014-05-07 04:09:36    阅读次数:433
关于 查看文件的size
public static long getTotalSize(String device) { StatFs sf = new StatFs (device); //long totalblocks = sf.getBlockCountLong(); //long freeblocks = sf.getFreeBlocksLong();//为使用的,包括 系统保留的部分 long a...
分类:其他好文   时间:2014-05-07 02:41:20    阅读次数:323
C语言 获取文件大小的方法
作者 : 卿笃军 方法一: 获得文件大小需要用到2个函数:fseek() , ftell()fseek()函数: 原型:intfseek(FILE*stream, long offset, int fromwhere); 参数: stream:第一个参数stream为文件指针 of...
分类:编程语言   时间:2014-05-07 01:10:09    阅读次数:445
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!