苹果电脑上使用perl发现下面这个错误:
Can't locate XML/Simple.pm in @INC (@INC contains: /opt/local/lib
解决方法:
sudo cpan install XML::Simple
这个安装时间有点长。...
分类:
其他好文 时间:
2014-09-24 23:38:17
阅读次数:
285
题意:给N,求小于N的数中,三个连续的数相加不进位的数有多少个。
思路:和上题类似,就是不是个位的话,可以放0,1,2,3,个位的话只能放0,1,2。
然后就是边界考虑一下,不能超过当前位。
然后就是边界的判断,不是等于len而是等于当前位。
代码:
#include"cstdlib"
#include"cstdio"
#include"cstring"
#include"cmath"
...
分类:
其他好文 时间:
2014-09-24 23:32:18
阅读次数:
220
PriviledgedActionException as:crabman (auth:SIMPLE) cause:java.io.IOException: Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server address...
分类:
其他好文 时间:
2014-09-24 22:24:48
阅读次数:
471
题意就略了。刚一看被数据吓住了。看到字符要求严格递增。那么如果字串长大于26那必然方案数目为0;同时1+2+3....+24+25+26=351如果大于这个数也是不可能的令dp[i][j][k]表示第i位为第j个字符和为K时的方案数目那么 dp[i][j][k]=sum(dp[i-1][m][k-t...
分类:
其他好文 时间:
2014-09-24 21:07:37
阅读次数:
270
【题意简述】:后一个数减去前一个数并输出。
【分析】:水
//208K 16Ms
#include
using namespace std;
int main()
{
double a;
double b;
bool flag = false;
double ans;
while(cin>>a)
{
if(a==999)
{
cout<<"End of Output...
分类:
其他好文 时间:
2014-09-24 19:31:27
阅读次数:
113
A Simple Math ProblemTime Limit: 3000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2791Accepted Submission(s): 1...
分类:
其他好文 时间:
2014-09-24 03:45:15
阅读次数:
213
Spinner一般绑定字符串数组就可以了,比如之前 的做法 ArrayAdapter adapter = ArrayAdapter.createFromResource(
this, R.array.fruit, android.R.layout.simple_spinner_item);,有时候,我们需要绑定一个对象,比如显示的时候,显示value,但是程序需要...
分类:
移动开发 时间:
2014-09-24 00:39:35
阅读次数:
312
第三十一题The following is a simple C program to read and print an integer. But it is not working properly. What is(are) the mistake(s)? #include int m...
分类:
其他好文 时间:
2014-09-24 00:25:25
阅读次数:
277
--method 1--ALTER DATABASE KIS_Sample3 SET RECOVERY SIMPLE DBCC SHRINKFILE (KISPro100_log, 1) ALTER DATABASE KIS_Sample3 SET RECOVERY full go --meto.....
分类:
其他好文 时间:
2014-09-23 12:50:04
阅读次数:
202
参考资料
http://faye.jcoglan.com/
Faye is a publish-subscribe messaging system based on the Bayeux protocol/CometD. It provides message servers for Node.js and Ruby, and clients for use on...
分类:
Web程序 时间:
2014-09-23 12:12:24
阅读次数:
192