【问题描述】DD 和MM 正在玩取石子游戏。他们的游戏规则是这样的:桌上有若干石子,DD 先取,轮流取,每次必须取质数个。如果某一时刻某一方无法从桌上的石子中取质数个,比如说剩下 0 个或 1 个石子,那么他/她就输了。DD 和MM 都很聪明,不管哪方存在一个可以必胜的最优策略,他/她都会按照最优策...
分类:
其他好文 时间:
2014-08-19 22:07:05
阅读次数:
237
12.20 编写程序,逐行读入一个输入文件,将内容存入一个StrBlob中,用一个StrBlobPtr打印出StrBlob的每个元素。StrBlob.h#ifndef STRBLOB_H#define STRBLOB_H#include#include#include#includeusing na...
分类:
其他好文 时间:
2014-08-19 22:06:45
阅读次数:
277
package com.mzj.nio.java;import java.io.IOException;import java.net.InetSocketAddress;import java.nio.ByteBuffer;import java.nio.channels.SelectionKey...
分类:
其他好文 时间:
2014-08-19 22:05:05
阅读次数:
256
2014多校9 1011http://acm.hdu.edu.cn/showproblem.php?pid=4970Killing MonstersTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 131072/131072 K (Java/Ot...
分类:
其他好文 时间:
2014-08-19 22:04:55
阅读次数:
320
版本为最新的201408080x01代码分析看到\plus\weixin.php有如下代码public function responseMsg() { $postStr = $GLOBALS["HTTP_RAW_POST_DATA"]; if (!empty($p...
分类:
其他好文 时间:
2014-08-19 22:04:35
阅读次数:
416
UVA 718 - Skyscraper Floors题目链接题意:在一个f层高的楼上,有e个电梯,每一个电梯有x,y表示y + k * x层都能够到,如今要问从a层是否能到达b层(中间怎么换乘电梯不限制)思路:对于两个电梯间能不能换乘,仅仅要满足y[i] + xx x[i] == y[j] + y...
分类:
其他好文 时间:
2014-08-19 22:04:25
阅读次数:
303
Given a(decimal -e.g. 3.72)number that is passed in as a string, print the binary representation. If the number can not be represented accurately in b...
分类:
其他好文 时间:
2014-08-19 22:04:15
阅读次数:
233
这个教程也很不错,http://reverland.org/python/2012/09/07/matplotlib-tutorial/ 也可以参考官网的Gallery,http://matplotlib.org/gallery.html 做数据分析,首先是要熟悉和理解数据,所以掌握一个趁手的可视化...
分类:
编程语言 时间:
2014-08-19 22:03:45
阅读次数:
455