题意:容易理解。分析:当n%(p+q)==0时,先取者必胜,必胜方案:先取q,然后对方去x个,先取者就取(p+q-x)个,最后对方就必须取玩p个,当n%(p+q)==r(rp&&r#include#includeint
main(){ int n, p, q; while(scanf("...
分类:
其他好文 时间:
2014-05-20 01:31:58
阅读次数:
233
在给控件设置背景时像ps那样的背景透明 在3.0以下可以使用
imageView.setBackgroundResource(android.R.id.empty);但是这个方法在3.0以上会出现ERROR/AndroidRuntime(xxxxx):
Caused by: android.cont...
分类:
移动开发 时间:
2014-05-20 00:08:42
阅读次数:
615
ERROR: could not load library "D:/Program
Files/PostgreSQL/9.3/lib/postgis-2.1.dll": Invalid access to memory
location.这个错误,参照:http://trac.osgeo.org/p...
分类:
数据库 时间:
2014-05-19 23:52:29
阅读次数:
1776
intdelayTime=3;QElapsedTimer
timer;timer.start();while(timer.elapsed()<(delayTime*1000)){app.processEvents();}
分类:
其他好文 时间:
2014-05-17 17:45:54
阅读次数:
209
1. VMware安装失败 “Failed to create the requested
registry key Key:installer Error:1021"1.1.
windows7在注册表(cmd--->regedit)中找到HKEY_LOCAL_MACHINE ---> SOFTWA...
分类:
其他好文 时间:
2014-05-17 15:15:48
阅读次数:
259
#include using namespace std;int func(int x){ int
cnt = 0; while (x) { cnt++; x = x&(x - 1); } return cnt;}int main(){ ...
分类:
其他好文 时间:
2014-05-17 14:54:19
阅读次数:
194
错误日志:log_error,log_warnings 服务器启动和关闭过程中的信息
服务器运行过程中的错误信息 事件调度运行一个事件时产生的信息
在从服务器上启动从服务器进程时产生的信息一般查询日志:general_log,general_log_file,log,log_output={...
分类:
数据库 时间:
2014-05-17 14:53:01
阅读次数:
347
(1)最终还是没能参加比赛,一次都没有机会。(2)有梦想,不到最后一刻不会放弃。(3)这里应该会搬次家,转到github上。(4)作为一个新手,什么东西都需要从头学起来,就从最基础的数据结构开始好了。待完成的任务:1-2-3-4-
分类:
其他好文 时间:
2014-05-17 14:38:01
阅读次数:
244
第六章:java异常处理-异常概述-java中的异常-Error/Exception层次关系-Try-catch语句块详解-throw/throws区别-自定义异常本章链接:1)http://pan.baidu.com/s/1kT5Hiuz2)http://pan.baidu.com/s/1hq7Pn5U3)http://pan.baidu.com/s/1pJsHPF1<7>第七章:javaIO处理-Fil..
分类:
移动开发 时间:
2014-05-16 01:58:36
阅读次数:
272
'''
程序31】
题目:请输入星期几的第一个字母来判断一下是星期几,如果第一个字母一样,则继续
判断第二个字母。
1.程序分析:用情况语句比较好,如果第一个字母一样,则判断用情况语句或if语句判断第二个字母。
2.程序源代码:
'''
from sys import stdin
letter = stdin.read(1)
stdin.flush()
while letter != 'Y...
分类:
编程语言 时间:
2014-05-16 01:47:37
阅读次数:
272