解题报告
题目传送门
题意:
两个人拿着两副牌,其中一人知道另一个人的手牌,问要怎么配对才能使他获得更多的点数。
游戏规则:
两张牌的第一个数大的牌的人加点。
第一个数相同就比较第二个数。
H>S>D>C
思路:
很容易建图,二分图最大匹配over
#include
#include
#include
using namespace std;
int mmap[100]...
分类:
其他好文 时间:
2014-08-15 21:14:29
阅读次数:
362
扫描枪实际上就是一输入设备,只不过它每次在输入的内容后面添加一个回车。因此在web中可以使用js监听回车事件。处理代码如下:jQuery(function() { jQuery(document).on('keydown','.card_number', function(e){ e = e|...
分类:
Web程序 时间:
2014-08-15 12:49:18
阅读次数:
183
这段代码是在新浪网站上找到的。先放出CSS代码:.focus a.arrow,.card_con4 li i,.cm1_menu_wrap a.cm1_menu_box,.cm1_img span,.cm1_item1 a{ background: url(http://www.sinaimg.cn...
分类:
Web程序 时间:
2014-08-13 14:46:56
阅读次数:
301
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
$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
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
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
在angular中有一个特别为RESTful架构而定制的服务,是在$http的基础上进行了封装.但是为了学习,我们先看看用直接$http是如何构建RESTful架构的:假设有一个银行卡的列表.需要的功能有:可以通过id来获取用户123的指定id的卡 'GET' 'card/user/123/id.....
分类:
其他好文 时间:
2014-08-11 21:00:23
阅读次数:
360