Description
A single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2...Sk. Each group Sk consists of a sequence of pos...
分类:
其他好文 时间:
2015-05-11 21:55:59
阅读次数:
104
1、准备好我们要克隆的对象:金币
public GameObject coin;
2、计算出抛物线的函数并按照函数算出克隆的位置:
///
/// 克隆抛物线型金币的方法
///
/// 克隆第一个金币的位置
/// 克隆金币数量
/// 两两金币间的距离
void LoadCoinMethod(Vector3 pos,int num,...
分类:
编程语言 时间:
2015-05-11 14:50:52
阅读次数:
150
分析:水题,主要是要注意几个细节。
#include
using namespace std;
char a[100005],A[100005];
char b[100005],B[100005];
void Process(char* p,int count,char* p2)
{
int pos;
bool is_real;
int i=0,k=0,j;
label:
...
分类:
其他好文 时间:
2015-05-10 19:00:07
阅读次数:
125
这两天公司做pos机,原来的做pos的人走了,程序已经基本写完。我下载到wince里,发现一旦调用webservice,就会弹出针对此异常的错误消息可用但无法显示,原因是这些消息是可选的,而当前未安装在此设备上。对于 Windows Mobile 5.0 及更高版本,请安装“NETCFv35.Mes...
WebService原理WebService是一种跨编程语言和跨操作系统平台的远程调用技术所谓远程调用,就是一台计算机a上的一个程序能够调用到另外一台计算机b上的一个对象的方法,譬如,银联提供给商场的pos刷卡系统(採用交互提问的方式来加深大家对此技术的理解)。远程调用技术有什么用呢?商场的POS机...
分类:
Web程序 时间:
2015-05-08 21:40:30
阅读次数:
187
POJ 2828 Buy Tickets(排队问题,线段树应用)ACM题目地址:POJ 2828 Buy Tickets题意:排队买票时候插队。给出一些数对,分别代表某个人的想要插入的位置Pos_i和他的Val_i,求出最后的队列的val顺序。分析:也是一道非常巧妙的题目。刚開始天真的以为sort一...
分类:
其他好文 时间:
2015-05-08 17:49:09
阅读次数:
121
#include
#include
using namespace std;
bool find_str(string s1,string s2)
{
if(s1.empty()||s2.empty())
return false;
string::size_type pos=s1.find(s2);
return (pos!=string::npos)?true:false;
}
in...
分类:
其他好文 时间:
2015-05-08 14:54:42
阅读次数:
155
//存入所有数的素数因数
//若两个数不互质,那么他们之间必然有素数因数
//dp[i][0]表示第i个数不选前i个数中能得到的最长序列
//dp[i][1]表示选了第i个数
//dp[i][0] = max(dp[i-1][0] , dp[i-1][1])
//dp[i][1] = max(dp[pos][1] + 1 ,dp[i][1] );
//pos位第i个数的质数因子出现的最...
分类:
其他好文 时间:
2015-05-07 22:11:55
阅读次数:
116
Problem:
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the pos...
分类:
编程语言 时间:
2015-05-07 12:35:08
阅读次数:
181
今天收到报警,提示从库延时,首先当然是上去查看情况,首先查看机器负载,如下:可以看到使用cpu已经100%,io没有等待。那么查看mysql是什么情况,执行show processlist没有发现任何异常,执行show slave status查看延时,发现延时一直在增加,且卡在了某个pos点不动了...
分类:
数据库 时间:
2015-05-07 00:32:13
阅读次数:
190