出现以下的错误:
Sublime Text 2/3: [Decode error - output not utf-8]
原因: 是因为,sublime 的Java 插件中没有明确 编码格式,
解决方案:
找到你的Packages->java.sublime-package 用 winrar 打开找到 JavaC.sublime-build
在倒...
分类:
其他好文 时间:
2014-06-19 10:52:16
阅读次数:
407
题目大意:
问A-B 走K 部的方法数。
如果矩阵 a 为任意一个点到另外一个点 走 1 步的方法数
那么 a*a 就是任意一个点到另外一个点 走 2 步的方法数
。。。
那么直接快速幂。
#include
#include
#include
#include
#include
#define N 10
using namespace std;
in...
分类:
其他好文 时间:
2014-06-15 18:02:55
阅读次数:
212
题目
A message containing letters from A-Z is being encoded to numbers using the following mapping:
原题链接(点我)
解题思路及代码;
解码方法数量问题。英文26个字母对应1到26,给一串数字,问翻译为字母有多少种方法?
这个题第一思路是想到使用组合排列的方法,穷举所有的可能。很好,写出如下代码...
但是提交后出来的结果是超时。
再想想,使用动态规划的方法来做。
对于串s[0...i]的解码数量应该和s[0.....
分类:
其他好文 时间:
2014-06-13 20:44:04
阅读次数:
292
select msn.FROM_ORGANIZATION_CODE 开始库存组织,
msn.FROM_ORGANIZATION_NAME 开始库存名称, msn.TO_ORGANIZATION_CODE 结束库存组织,
msn.TO_ORGANIZATION_NAME 结束库存名称,decode(....
分类:
数据库 时间:
2014-06-12 10:45:09
阅读次数:
293
Execute shell commandsThere are a number of
different ways to run shell commands from Ruby.TheexeccommandKernel#execreplaces
the current process and r...
分类:
其他好文 时间:
2014-06-12 06:50:15
阅读次数:
281
Write an algorithm to print all ways of arranging
eight queens on an 8*8 chess board so that none of them share the same row,
column or diagonal.思路:本质...
分类:
其他好文 时间:
2014-06-10 10:36:29
阅读次数:
182
问题:
You are climbing a stair case. It takes n steps to reach to the top.
Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?
分析:
该问题是符合斐波那契数列的,具体...
分类:
其他好文 时间:
2014-06-10 08:19:31
阅读次数:
194
How many ways
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 2594 Accepted Submission(s): 1528
Problem Description
这是一个简单的生存游戏,你控...
分类:
其他好文 时间:
2014-06-10 07:05:49
阅读次数:
188