题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=744标准水题目。。找规律即可。。题解:找规律水题,任取两组数即可,如4,8。计算得这个区间异或最大值为7^8=15=(1111)2=2^4-1;再任意找一组数2,6,计算得这个区间异或最大值...
分类:
其他好文 时间:
2014-08-13 12:33:46
阅读次数:
156
Description
In the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Players take turns removing a card from either end...
分类:
其他好文 时间:
2014-08-13 01:18:05
阅读次数:
209
思路:不要死套路来一个一个暴力求最大公约数,换个思路,从最大的数开始,进行除法操作,如果有两个满足条件的数,那么就是这个数就是最大的了。方法很巧题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=948代码#include #include u...
分类:
其他好文 时间:
2014-08-12 21:57:04
阅读次数:
202
$m = M('service_loginlog'); $res =$m->where('card_id='.$_SESSION['card_id'])->order('time desc')->select(); foreach($res as $k=>$v){ ...
分类:
Web程序 时间:
2014-08-12 18:30:14
阅读次数:
270
思路:刚学的最小生成树,顺便找个题目做一下~,普里姆算法轻松ac,没难度。。下次用kruskal算法试下附上ac码:#include #include int e[501][501];//储存地图 int h[501];int mintree;int v,l;int prime()//普里姆算法 {...
分类:
其他好文 时间:
2014-08-12 16:10:14
阅读次数:
205
JAVA CARD 的存储器件:
a. ROM: 永久保存程序和数据,虚拟机,API等;(Applets也可以放这里)
b. RAM: 栈数据,临时对象;
c. EEPROM: Applet的类,长生命周期的数据;(写操作比RAM慢1000倍)...
分类:
编程语言 时间:
2014-08-12 13:38:54
阅读次数:
213
Problem Description
Let's play a card game called Gap.
You have 28 cards labeled with two-digit numbers. The first digit (from 1 to 4) represents the suit of the card, and the second digit (from 1 ...
分类:
其他好文 时间:
2014-08-12 10:24:14
阅读次数:
379
1 /* 2 题意:N个城市中每两个城市有多条路径连接,可是因为路径存在的天数是有限的!以为某条路经不存在了 3 导致N个城市不能连通了,那么村名们就会抗议!问一共会有多少次抗议! 4 5 思路:最小生成树....我们用最大边来建立树!只要有最大边将节点连接并保证...
分类:
其他好文 时间:
2014-08-12 10:15:33
阅读次数:
179
package card;public class Game implements Runnable{ int numPlayers; int startNumber; //players and hands seperate so players can't change the...
分类:
其他好文 时间:
2014-08-12 03:12:34
阅读次数:
285
中国银行金融IC卡qPBOC交易时间(不含终端处理时间)要求:IC卡私钥长度1024位,交易时间
ATR=3B8D800100814D220886601222275000014A
CARD=6231200100000000217F
Send:00A404000E325041592E5359532E4444463031
--->:6F30840E325041592E5359...
分类:
其他好文 时间:
2014-08-11 21:35:02
阅读次数:
422