Beginning with API Level 8, you can allow your application to be installed on the external storage (for example, the device's SD card). This is an optional feature you can declare for your applica...
分类:
移动开发 时间:
2015-06-17 16:47:41
阅读次数:
145
1 generating rsa key...[ 4.452000] mmc0: error -110 whilst initialising SD card[ 5.602000] mmc0: error -110 whilst initialising SD card [ 7.750000] mm...
分类:
其他好文 时间:
2015-06-15 16:19:25
阅读次数:
197
Shuffling is a procedure used to randomize a deck of playing cards to provide an element of chance in card games.
Shuffling的目标是要Shuffling后所有可能情况的概率一样。
Before:
After:
这里介绍两种简单的shuffling算法:...
分类:
其他好文 时间:
2015-06-10 22:35:32
阅读次数:
247
下面这部分代码截取自盛大的某个网页,具体我就不给url了,下面是对应的js代码:
iW = new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1);
iSum = 0;
for( i=0;i<17;i++){
iC = v_card.charAt(i) ;
iVal = parseInt(iC);
iSum += iVa...
分类:
Web程序 时间:
2015-06-10 08:52:48
阅读次数:
235
#include
#include
#include
int N; //牌序
int integral_player; //玩家积分
int integral_computer; //电脑积分
int card[52]= {102,103,104,105,106,107,108,109,110,111,112,113,114,202,203,204,205,206,207,208,209...
分类:
其他好文 时间:
2015-06-09 13:50:57
阅读次数:
112
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4336题目大意:有n种卡片,需要吃零食收集,打开零食,出现第i种卡片的概率是p[i],也有可能不出现卡片。问你收集齐n种卡片,吃的期望零食数是多少?状态压缩:f[mask],代表收集齐了mask,还需要吃...
分类:
其他好文 时间:
2015-06-07 14:32:47
阅读次数:
229
DescribeTwo bored soldiers are playing card war. Their card deck consists of exactly n cards, numbered from 1 to n, all values are different. They div...
分类:
其他好文 时间:
2015-06-02 12:58:58
阅读次数:
131
例子:一个名为person的表,字段分别有name, age ,city,school,card,id 注意:sql是对大小写不敏感1.select : select name from person 查询出person表的所有name字段 select * from person 查询p...
分类:
数据库 时间:
2015-06-02 12:58:27
阅读次数:
143
饭卡(card)Time Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.uestc.edu.cn/#/problem/show/31Description电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余...
分类:
其他好文 时间:
2015-06-02 00:09:51
阅读次数:
98
机房合作我负责了最简单的D层,接口层,工厂层。反正D层是我来写,于是数据库索性也就顺便设计了。已经是第三次敲机房收费系统了,每次都是相隔半年左右吧。需求搞得透透的了,数据库也就好设计了。基本跟第二次没什么大的区别,就是把Student表和Card表分开了。
重构的时候,我的数据库几乎什么都用到了:事务,存储过程,触发器,视图,联合查询等等。所以,这次设计数据库还是SO Easy的...
分类:
数据库 时间:
2015-05-27 22:50:41
阅读次数:
262