文件名称:code
-
所属分类:
- 标签属性:
- 上传时间:2015-04-19
-
文件大小:1.88mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
binary tree asm lab1-In computer science, binary tree is a widely used data structure. Here we will look at infinite binary tree where the node is a pair of integers. The tree is constructed as follows:
1. The root is the pair (1,1).
2. If a node is (a,b) then its left child is (a+b,b) and its right child (a,a+b)
Given the pair (a,b) of some node of the binary tree descibed above, suppose you are traversing the root of the tree to the given node along the shortest possible path. Can you find out the times you have to go to a left child and the times to a right child.
Input: The first line contains the number of input sets, each of which is consisted of a single line containing two integers i and j ( 1<=i,j<=2*10^9) that represent a node (i,j). You can assume that this is a valid node in the binary tree described above.
1. The root is the pair (1,1).
2. If a node is (a,b) then its left child is (a+b,b) and its right child (a,a+b)
Given the pair (a,b) of some node of the binary tree descibed above, suppose you are traversing the root of the tree to the given node along the shortest possible path. Can you find out the times you have to go to a left child and the times to a right child.
Input: The first line contains the number of input sets, each of which is consisted of a single line containing two integers i and j ( 1<=i,j<=2*10^9) that represent a node (i,j). You can assume that this is a valid node in the binary tree described above.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
code
test1/file.raw
test1/lena512.raw
test1/trans.c
test1/trans.exe
test1/trans.o
test1/trans.obj
test2/Debug/cl.command.1.tlog
test2/Debug/CL.read.1.tlog
test2/Debug/CL.write.1.tlog
test2/Debug/link-cvtres.read.1.tlog
test2/Debug/link-cvtres.write.1.tlog
test2/Debug/link.51096-cvtres.read.1.tlog
test2/Debug/link.51096-cvtres.write.1.tlog
test2/Debug/link.51096.read.1.tlog
test2/Debug/link.51096.write.1.tlog
test2/Debug/link.command.1.tlog
test2/Debug/link.read.1.tlog
test2/Debug/link.write.1.tlog
test2/Debug/mt.command.1.tlog
test2/Debug/mt.read.1.tlog
test2/Debug/mt.write.1.tlog
test2/Debug/rc.command.1.tlog
test2/Debug/rc.read.1.tlog
test2/Debug/rc.write.1.tlog
test2/Debug/test2.exe
test2/Debug/test2.exe.embed.manifest
test2/Debug/test2.exe.embed.manifest.res
test2/Debug/test2.exe.intermediate.manifest
test2/Debug/test2.ilk
test2/Debug/test2.lastbuildstate
test2/Debug/test2.log
test2/Debug/test2.pdb
test2/Debug/test2_manifest.rc
test2/Debug/trans2.obj
test2/Debug/vc100.idb
test2/Debug/vc100.pdb
test2/file.raw
test2/ipch/test2-7d47d04b/test2-aaf1d2be.ipch
test2/kernel32.pdb/17D8B8C647E14C1DAF9C6FC206AAAC512/download.error
test2/lena512.raw
test2/test2.sdf
test2/test2.sln
test2/test2.suo
test2/test2.vcxproj
test2/test2.vcxproj.filters
test2/test2.vcxproj.user
test2/trans2.c
test2/trans2.exe
test2/trans2.o
test2/trans2.obj
test3/file.raw
test3/lena512.raw
test3/trans3.c
test3/trans3.exe
test3/trans3.o
test3/trans3.obj
test4/file.raw
test4/lena512.raw
test4/trans2.exe
test4/trans2.o
test4/trans2.obj
test4/trans4.c
test4/trans4.exe
test4/trans4.obj
test2/ipch/test2-7d47d04b
test2/kernel32.pdb/17D8B8C647E14C1DAF9C6FC206AAAC512
test2/Debug
test2/ipch
test2/kernel32.pdb
test1
test2
test3
test4
test1/file.raw
test1/lena512.raw
test1/trans.c
test1/trans.exe
test1/trans.o
test1/trans.obj
test2/Debug/cl.command.1.tlog
test2/Debug/CL.read.1.tlog
test2/Debug/CL.write.1.tlog
test2/Debug/link-cvtres.read.1.tlog
test2/Debug/link-cvtres.write.1.tlog
test2/Debug/link.51096-cvtres.read.1.tlog
test2/Debug/link.51096-cvtres.write.1.tlog
test2/Debug/link.51096.read.1.tlog
test2/Debug/link.51096.write.1.tlog
test2/Debug/link.command.1.tlog
test2/Debug/link.read.1.tlog
test2/Debug/link.write.1.tlog
test2/Debug/mt.command.1.tlog
test2/Debug/mt.read.1.tlog
test2/Debug/mt.write.1.tlog
test2/Debug/rc.command.1.tlog
test2/Debug/rc.read.1.tlog
test2/Debug/rc.write.1.tlog
test2/Debug/test2.exe
test2/Debug/test2.exe.embed.manifest
test2/Debug/test2.exe.embed.manifest.res
test2/Debug/test2.exe.intermediate.manifest
test2/Debug/test2.ilk
test2/Debug/test2.lastbuildstate
test2/Debug/test2.log
test2/Debug/test2.pdb
test2/Debug/test2_manifest.rc
test2/Debug/trans2.obj
test2/Debug/vc100.idb
test2/Debug/vc100.pdb
test2/file.raw
test2/ipch/test2-7d47d04b/test2-aaf1d2be.ipch
test2/kernel32.pdb/17D8B8C647E14C1DAF9C6FC206AAAC512/download.error
test2/lena512.raw
test2/test2.sdf
test2/test2.sln
test2/test2.suo
test2/test2.vcxproj
test2/test2.vcxproj.filters
test2/test2.vcxproj.user
test2/trans2.c
test2/trans2.exe
test2/trans2.o
test2/trans2.obj
test3/file.raw
test3/lena512.raw
test3/trans3.c
test3/trans3.exe
test3/trans3.o
test3/trans3.obj
test4/file.raw
test4/lena512.raw
test4/trans2.exe
test4/trans2.o
test4/trans2.obj
test4/trans4.c
test4/trans4.exe
test4/trans4.obj
test2/ipch/test2-7d47d04b
test2/kernel32.pdb/17D8B8C647E14C1DAF9C6FC206AAAC512
test2/Debug
test2/ipch
test2/kernel32.pdb
test1
test2
test3
test4
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.