The circle line of the Berland subway has n stations. We know the distances between all pairs of neighboring stations:
d1 is
the distance between the 1-st and the 2-nd
station;
d2 is
the d...
分类:
其他好文 时间:
2014-07-22 23:05:14
阅读次数:
302
1 #include 2 #include 3 #include 4 #define
INIT_STACK_SIZE 100 5 typedef struct 6 { 7 char * chOperator; 8 int dwtop; 9
}OPND;10 11 void I...
分类:
其他好文 时间:
2014-05-01 20:37:37
阅读次数:
373
1 #include 2 #include 3 4 typedef struct mdata 5 {
6 int *pTime; 7 int width; 8 int hight; 9 struct mdata *pre; 10 st...
分类:
其他好文 时间:
2014-05-01 20:32:48
阅读次数:
348
1 #include 2 #include 3 #include 4 #define
INIT_STACK_SIZE 100 5 typedef struct 6 { 7 char * chOperator; 8 int dwtop; 9
}OPND;10 11 void I...
分类:
其他好文 时间:
2014-05-01 20:32:11
阅读次数:
366
#include void pr_stdio(const char *, FILE *);int
main(){ FILE *fp; fputs("enter any character\n",stdout); if(getchar()==EOF)
printf("getchar error");....
分类:
其他好文 时间:
2014-05-01 20:18:16
阅读次数:
321
一、整体流程1、获取ST库--STM32F10x_StdPeriph_Lib_V3.5.02、新建文件夹并加载文件3、新建工程4、给工程添加组5、设置"Target
Option"6、设置Debug选项二、获取ST库 这里用野火光盘提供的"ST库3.5.0源码"--STM32F10x_StdPer....
分类:
其他好文 时间:
2014-05-01 20:12:19
阅读次数:
485
1. sprintf 原型:int sprintf( char *buffer, const char
*format, [ argument] … ); 功能:将格式化后的字符串写在buffer中,常用于把数字打印在字符串中;连接字符串。 参数:buffer -
待写入缓冲区; format - ...
分类:
其他好文 时间:
2014-05-01 19:32:52
阅读次数:
323
#include #include #include #include
"qtquick2applicationviewer.h"int main(int argc, char *argv[]){ QGuiApplication
app(argc, argv); QScreen *scr...
分类:
其他好文 时间:
2014-05-01 19:30:41
阅读次数:
274
#include #include #include #include
"qtquick2applicationviewer.h"int main(int argc, char *argv[]){ QGuiApplication
app(argc, argv); QScreen *scr...
分类:
系统相关 时间:
2014-05-01 19:24:46
阅读次数:
693
题目来源:POJ 3882 Stammering Aliens
题意:给你m一个一个字符串 求至少出现m次的最长字符串 可以在字符串中重叠出现
思路:二分长度l 然后从height数组中找长度大于等于l的前缀
#include
#include
#include
using namespace std;
const int maxn = 40010;
char s[maxn];
in...
分类:
其他好文 时间:
2014-05-01 17:36:34
阅读次数:
334