#includeusing namespace std;int main(){ int n; cin >> n; for (int i = 0; i > a >> b >> c; if (a>0 && a0 && b0 && cc&&a + c > b&&b + c > a) cout <<...
分类:
其他好文 时间:
2014-08-14 10:26:48
阅读次数:
186
Rotate ImageYou are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?CC上的原题,...
分类:
其他好文 时间:
2014-08-14 03:45:17
阅读次数:
192
In 2014, adobe released adobe cc 2014 suites. If you want to download from official sites, the creative cloud management app will be installed firstl....
分类:
其他好文 时间:
2014-08-13 21:42:27
阅读次数:
191
创建sstable文件了解了sstable文件的存储格式,以及Data Block的组织,下面就可以分析如何创建sstable文件了。相关代码在table_builder.h/.cc以及block_builder.h/.cc(构建Block)中。6.4.1 TableBuilder类构建sstabl...
分类:
数据库 时间:
2014-08-13 21:36:07
阅读次数:
511
MainActivity如下:
package cc.patience3;
import android.os.Bundle;
import android.app.Activity;
/**
* Demo描述:
* 采用瀑布流的形式加载大量网络图片
* 详细分析参见WaterfallScrollView
*
* 参考资料:
* 1 http://blog.csdn.net/gu...
分类:
其他好文 时间:
2014-08-13 14:59:06
阅读次数:
402
C/C++中sizeof()函数的用法 学习C/C++有时会遇到下面的情况:已知 char *str1="absde"; char str2[]="absde"; char str3[8]={'a'}; char str4 [] = "0123456789";为什么sizeof(st...
分类:
编程语言 时间:
2014-08-13 14:25:16
阅读次数:
210
必要的软件准备:在Cydia里安装下面的软件 1.OpenSSH,OpenSSH是Linux下常用的服务,装上后设备可充当服务SSH服务端 2.GNU Debugger(gdb)调试工具 3.adv-cmds(ps命令) 4. darwin cc tools (otools) 5. Link Ide...
分类:
其他好文 时间:
2014-08-13 07:59:35
阅读次数:
283
被虐了一下午。。离散化,开一个rr[mnx], cc[mnx],初始化为rr[i] = i, cc[i],然后换的时候就换这两个数组就好了。。然后就是不断的lower_bound 1 #include 2 #include 3 #include 4 #include 5 #include 6 #in...
分类:
其他好文 时间:
2014-08-13 00:35:54
阅读次数:
289
struct op( name = "ccc")coc = #( cc = op name: 20 , op name: "name" )--- 保存数组配置o = gt_max_namespace.gt_cl_hp_fileiooutin(); o. setfile "c://t.txt" ...
分类:
其他好文 时间:
2014-08-12 12:55:34
阅读次数:
146
实际问题: 在本地 master 分支上做了一个commit (38361a68138140827b31b72f8bbfd88b3705d77a) , 如何把它放到 本地 old_cc 分支上?办法之一: 使用 cherry-pick. 根据git 文档:Apply the changes intr...
分类:
其他好文 时间:
2014-08-12 10:14:33
阅读次数:
178