poj 1426 Find The Multiplehttp://poj.org/problem?id=1426题意:Given a positive integer n, write a program to find out a nonzero multiple(倍数) m of n whose...
分类:
其他好文 时间:
2014-09-02 19:51:15
阅读次数:
186
Hibernate annotation 多对多:下面测试例子会自动生成一张表:card,这张是bank和user表的映射表。里头是bank_id和user_id两个组合字段。如果想在这张映射表中加入额外的字段,那么hibernate似乎无法做到。因为这需要把多对多写成两个一对多的关系。事实上这样加...
分类:
系统相关 时间:
2014-09-02 19:27:25
阅读次数:
233
Hibernate使用Annotation的一对多:hibernate.cfg.xml com.mysql.jdbc.Driver jdbc:mysql://127.0.0.1/testdb root ...
分类:
系统相关 时间:
2014-09-02 17:29:55
阅读次数:
261
Expression in parentheses(), square bracket[], and curly braces{}can span multiple lines.A backslash (\) at the end of the line denotes continuation t...
分类:
编程语言 时间:
2014-09-02 05:51:34
阅读次数:
238
Hibernate annotation 一对一的两种实现:1)幅表中有主表的主键ID做为引用2)幅表的主键即为主表的IDhibernate.cfg.xml com.mysql.jdbc.Driver jdbc:mysql://127.0.0.1/...
分类:
系统相关 时间:
2014-09-01 19:25:43
阅读次数:
285
题目:计算一个数是不是17的倍数。
说明:字符串,大数。简单题,直接判断即可。
设 n = 10a + d;(0 ≤ d ≤ 9)则
a - 5d = 51a - 5n,如果n被17整除,这个数必然也被17整除。
说明:题目给了个结论,不需要用,直接%17判断余数即可。
#include
#include
#include
#incl...
分类:
其他好文 时间:
2014-09-01 10:49:03
阅读次数:
143
The_diamond_problem (钻石问题) http://en.wikipedia.org/wiki/Multiple_inheritance#The_diamond_problem The "diamond problem" (sometimes referred to as the "deadly diamond of death"[6]) is an ambigui...
分类:
其他好文 时间:
2014-08-30 15:13:50
阅读次数:
232
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:
其他好文 时间:
2014-08-30 11:14:19
阅读次数:
209
题解:求n个数的最小公倍数,一个一个算就可以了,需要注意的是LCM先除GCD再乘,因为先乘有可能会超范围,1WA的代价。#include int T,n,a,b;int gcd(int a,int b){if(b==0)return a;return gcd(b,a%b);}int main(){ ...
分类:
其他好文 时间:
2014-08-30 08:43:49
阅读次数:
185
61.You frequently have multiple RMAN sessions running, and you want to be able to easily identify each
job via the CLIENTJNFO column of the dynamic performance view V$SESSION. What RMAN command
can ...
分类:
其他好文 时间:
2014-08-29 20:08:08
阅读次数:
261