股票数据,挑战性问题,敬请帮忙。(300)

  • 主题发起人 主题发起人 zhoufujin
  • 开始时间 开始时间
Z

zhoufujin

Unregistered / Unconfirmed
GUEST, unregistred user!
钱龙旗舰2009版成交明细文件格式(..realtime/600***.tic文件)前0..11个字节是文件头:data: array[0..11] of byte = ($00, $34, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00);以后每52个字节为一个记录:data: array[0..51] of byte = ( $A8, $84,=时间(秒数)(秒数 DIV 60=MiN,MiN DIV 60=小时,MiN Mod 60=分) $00, $FF,= $01主动买入, $FF主动卖出 $5A, $46, $00, $00,=成交价 $00, $00, $00, $00,=空 $E8, $FC, $07, $41,= 成交量 $1E, $19, $00, $00,=买入价 $82, $46, $00, $00,=卖出价 $00, $00, $00, $00,=空 $00, $00, $00, $00,=空 $00, $00, $00, $00,=空 $00, $00, $00, $00,=空 $00, $00, $00, $00,=空 $00, $00, $00, $00,=空 $00, $00, $00, $01=第几笔};股票600376,2010.02.26文件前272个字节(delphi格式)前0..11个字节是文件头从12个字节开始每52个字节为一个记录(取前5个记录)。data: array[0..11] of byte = ( $00, $34, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00//文件头 //第一记录 $A8, $84, //时间 $00, $FF, //买卖 $5A, $46, $00, $00,//成交价 $00, $00, $00, $00, //空 $E8, $FC, $07, $41, //成交量 $5A, $46, $00, $00,//买入价 $82, $46, $00, $00,//卖出价 $00, $00, $00, $00, //空 $00, $00, $00, $00, //空 $00, $00, $00, $00, //空 $00, $00, $00, $00, //空 $00, $00, $00, $00, //空 $00, $00, $00, $00, //空 $01, $00, $00, $00, //第几笔 //第二记录 $D4, $85,$00, $01, $78, $46, $00, $00, $00, $00, $00, $00, $20, $6F, $F6, $40, $5A, $46, $00, $00, $78, $46, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $02, $00, $00, $00, //第三记录 $D4, $85, $00, $01, $96, $46, $00, $00, $00, $00, $00, $00, $40, $B4, $F5, $40, $82, $46, $00, $00, $96, $46, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $03, $00, $00, $00, //第四记录 $D4, $85, $00, $01, $AA, $46, $00, $00, $00, $00, $00, $00, $80, $E1, $EB, $40, $AA, $46, $00, $00, $B4, $46, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $04, $00, $00, $00, 第五记录 $D4, $85, $00, $01, $B4, $46, $00, $00, $00, $00, $00, $00, $00, $00, $59, $40, $AA, $46, $00, $00, $B4, $46, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $00, $05, $00, $00, $00);问题:成交量 4个字节是加密的,如第一个记录“$E8, $FC, $07, $41”=1965手,以下是部分成交量手数总结: $00,$00,$59,$40 1手 $00,$00,$69,$40 2手 $00,$C0,$72,$40 3手 $00,$00,$79,$40 4手 $00,$40,$7F,$40 5手 $00,$C0,$82,$40 6手 $00,$E0,$85,$40 7手 $00,$00,$89,$40 8手 $00,$20,$8C,$40 9手 $00,$40,$8F,$40 10手 $C0,$57,$0A,$41 2158手 $20,$2F,$0A,$41 2145手 $80,$4A,$07,$41 1908手 似乎2的N次方(N>=0,如1,2,4,8,16等)有以下规律 $00,$00,$59,$40 1手 $00,$00,$69,$40 2手 $00,$00,$79,$40 4手 $00,$00,$89,$40 8手 $00,$00,$99,$40 16手其它不知道有何规律。如何破解成交量(手数)?大家帮忙,先给300分,解决者另给分.
 
挑战了有什么好处?
 
1000分奉送
 
LZ在2008-9-11就提出过类似地问题,见下地址:http://www.delphibbs.com/delphibbs/dispq.asp?lid=3920679那个帖子还没结吧?似乎不够地道啊。
 
貌似是钱龙旗舰2009版的qiang手?[:D]
 
感谢szhcracker提醒,已经散分,还请你再次帮忙破解难题
 
后退
顶部