2010年12月28日

摘要: //为了和DSP兼容,TSint64和TUint64设置成TSint40和TUint40一样的数//结果VC中还是认为是32位的,显然不合适//typedefsignedlongintTSint64;//typedefunsignedlongintTUint64;//ANSIC中规定longlong才能表示64位//参见:http://msdn.microsoft.com/en-us/library/s3f49ktz.aspx//可惜VC++6.0不认识longlong,会报errorC2632:'long'followedby'long'isillegalty 阅读全文
posted @ 2010-12-28 13:16 yming0221 阅读(225) 评论(0) 推荐(0)
摘要: 字符串模拟排序http://poj.org/problem?id=2996Help Me with the GameTime Limit:1000MSMemory Limit:65536KDescriptionYour task is to read a picture of a chessboard position and print it in the chess notation.InputThe input consists of an ASCII-art picture of a chessboard with chess pieces on positions described 阅读全文
posted @ 2010-12-28 13:08 yming0221 阅读(85) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=3006Dirichlet's Theorem on Arithmetic ProgressionsTime Limit:1000MSMemory Limit:65536KDescriptionIfaanddare relatively prime positive integers, the arithmetic sequence beginning withaand increasing byd, i.e.,a,a+d,a+ 2d,a+ 3d,a+ 4d, ..., contains infinitely many prime n 阅读全文
posted @ 2010-12-28 07:39 yming0221 阅读(118) 评论(0) 推荐(0)

导航