在oc中我们通过-(CardMatchingGame *)game{ if(!_game) _game=[[CardMatchingGame alloc] initWithCardCount:[self.cardButtons count] usingDeck:[self createDeck...
分类:
其他好文 时间:
2014-07-29 14:09:28
阅读次数:
173
http://poj.org/problem?id=1753
因为目标状态是全白或全黑,所以进行两次高斯消元,每次若有自由变元的话要枚举自由变元求得最优解。
哇哦,怎么就写了200+行。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#incl...
分类:
其他好文 时间:
2014-07-29 13:06:27
阅读次数:
206
1.4.7 奇数偶数 POJ 1733 Parity game...
分类:
其他好文 时间:
2014-07-29 12:54:37
阅读次数:
220
21点游戏,命令行的,面像过程的写法。ruby 的写法以后再试试。
# this is game 21 point
# 操作命令符 空没有操作,n下一步,抽牌;w亮牌结束;l认输
$ope = ''
$prompt = '>'
$x1 = 0
$x2 = 0
$x3 = 0
$pc = 0
$u1 = 0
$u2 = 0
$u3 = 0
$over = ''
def out_main(a = ...
分类:
其他好文 时间:
2014-07-29 12:52:27
阅读次数:
212
Motion(http://www.lavrsen.dk/foswiki/bin/view/Motion/)是一款小巧、轻型但又功能强大的应用软件,可以用来在Linux上操控监控摄像头。它能够与任何支持Linux的摄像头协同运行,包括所有的V4L网络摄像头、许多IP摄像头以及安迅士(Axis)摄像头...
分类:
系统相关 时间:
2014-07-29 10:40:26
阅读次数:
477
题目:uva-10905Children's Game(贪心)
题目大意:给出N个正整数,问将这N个整数连接后得到的最大的数。
解题思路:排序,将两两连接有AB 或是BA,将如果AB > BA ,那么就将A排在B的后面,反之则反之。
代码:
#include
#include
#include
using namespace std;
const int N...
分类:
其他好文 时间:
2014-07-28 16:21:33
阅读次数:
200
Cyclic Tour
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/65535 K (Java/Others)
Total Submission(s): 1478 Accepted Submission(s): 750
Problem Description
There are N cit...
分类:
其他好文 时间:
2014-07-28 16:03:13
阅读次数:
271
Coin Toss
Time Limit: 5000MS
Memory Limit: 65536K
Total Submissions: 3019
Accepted: 817
Description
In a popular carnival game, a coin is tossed onto a table with a...
分类:
其他好文 时间:
2014-07-28 15:54:53
阅读次数:
418
题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your ma....
分类:
编程语言 时间:
2014-07-28 11:34:40
阅读次数:
210
题目:Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array represents your ma....
分类:
编程语言 时间:
2014-07-28 11:33:50
阅读次数:
278