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
time_t SystemTimeToTime_t( const SYSTEMTIME& st )
{
tm temptm = {st.wSecond,
st.wMinute,
st.wHour,
st.wDay,
st.wMonth - 1,
st.wYear - 1900,
st...
分类:
其他好文 时间:
2014-07-22 23:02:34
阅读次数:
599
点击打开链接
Strategic game
Time Limit: 2000MS
Memory Limit: 10000K
Total Submissions: 6105
Accepted: 2808
Description
Bob enjoys playing computer games, especially st...
分类:
其他好文 时间:
2014-07-22 23:01:55
阅读次数:
304
一.内存对齐的初步讲解内存对齐可以用一句话来概括:“数据项只能存储在地址是数据项大小的整数倍的内存位置上”例如int类型占用4个字节,地址只能在0,4,8等位置上。例1:#include
struct xx{ char b; int a; int c; char d;};int main(){ st...
分类:
其他好文 时间:
2014-05-10 19:52:54
阅读次数:
323
package ioTest.io1;
import java.io.FileReader;
import java.io.FileWriter;
/*将d盘的文件复制到e盘
* Copy的原理:
* 读取d盘的文件内容,然后写入到e盘的同名文件中。(同名文件需要创建)
*
*/
public class CopyText {
public static void main(St...
分类:
编程语言 时间:
2014-05-02 19:34:41
阅读次数:
432
1.U3D经常莫名奇妙崩溃。一般是由于空异常造成的,多多检查自己的引用是否空指针。2.编码切换警告提示。警告提示:Some
are Mac OS X (UNIX) and some are Windows.This might lead to incorrect line
numbers in st...
分类:
其他好文 时间:
2014-05-02 14:27:11
阅读次数:
752
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、获取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
五一之际,先祝大家五一快乐、其实快乐很简单,工作的人有假放,学习的人也有假放,像我,有假放才有更多的时间学自己想学的东西、51假期学51,可惜没有32假期呀、好了、、言归正传,大家听过吸星大法吧、、在这里、智商和情商比我高的人估计又知道我要说什么了、、没错了、、今天我们来了解“葵花宝典”第ST...
分类:
其他好文 时间:
2014-05-01 18:54:30
阅读次数:
566
DP+贪心优化。 1 #include 2 #include 3 #include 4 5
#define MAXNUM 105 6 7 typedef struct { 8 int exp, deg; 9 } info_st;10 11
info_st infos[MAXNUM]...
分类:
其他好文 时间:
2014-05-01 00:26:21
阅读次数:
330