资格赛Energy Conversion水题。#include #include
#include #include #include #include #define ll long longusing namespace std;int
main(){ int T; scanf("%...
分类:
其他好文 时间:
2014-06-07 05:10:51
阅读次数:
371
如果尿布臭了,就换掉它。
1.Duplicated Code 重复代码
Extract MethodPull Up MethodForm Template Method --》 Template Method 模式Substitute Algorithm --》 函数算法替代
2.Long Method 过长的函数
“间接层”所带来的全部利益--解释能力、共享能...
分类:
其他好文 时间:
2014-06-05 08:45:40
阅读次数:
291
必须弄懂的495个C语言问题1.1 我如何决定使用那种整数类型?如果需要大数 值(大于32,
767 或小于?32, 767), 使用long 型。否则, 如果空间很重要(如有大数组或很多结构), 使用short 型。除此之外, 就使用int
型。如果严格定义的溢出特征很重要而负值无关紧要, 或者你...
分类:
编程语言 时间:
2014-06-03 11:40:22
阅读次数:
434
1,virConnectGetLibVersionAPI call obtain the
version of libvirt software in use on the hostit takes a connection pointer and
unsigned long pointer as ...
*含义1.乘法 3*5 2.定义指针变量 int *
p;//定义了一个名字叫p的变量,能够存放int数据类型的地址3.指针运算符, //如果p是一个已经定义好的指针变量则*p表示以p的内容为地址的变量
打印数据类型%d - int%ld – long int%c - char%f ...
分类:
移动开发 时间:
2014-05-31 01:04:05
阅读次数:
346
DescriptionGeorge took sticks of the same
length and cut them randomly until all parts became at most 50 units long. Now
he wants to return sticks to ...
分类:
其他好文 时间:
2014-05-30 23:00:32
阅读次数:
395
http://blogs.msdn.com/b/borisj/archive/2006/09/28/769708.aspxI apologize for the
long delay for this section (although I suppose my average posting fr...
分类:
编程语言 时间:
2014-05-30 13:08:38
阅读次数:
362
1、通过Toast类显示提示消息对话框Toast.makeText(Login.this,"pleaseinputtherightinfomation!",Toast.LENGTH_LONG).show()函数实现。2、Android中的String类与Qt中的QString类有一点不同,Andro...
分类:
移动开发 时间:
2014-05-30 03:17:01
阅读次数:
287
一道找循环节的题,RE了很多发。要用到一个转换式子:a^b%c=[(a%c)^(b%phi(c)+phi(c))]%c#include#include#include#include#include#define
ull unsigned long longusing namespace std;i...
分类:
其他好文 时间:
2014-05-30 02:53:25
阅读次数:
251
class Solution {public: string
getPermutation(int n, int k) { k--; if (n nums(n, 0); long seg = 1; for (int
i=0; i= se...
分类:
其他好文 时间:
2014-05-29 17:04:51
阅读次数:
209