ACM试题An Easy Problem Description As we known, data stored in the computers is in binary form. The problem we discuss now is about the positive integers and its binary form. Given a positive integer I, you task is to find out an integer J, which is the minimum integer greater than I, and the number of 1 s in whose binary form is the same as that in the binary form of I. For example, if "78" is given, we can write out its binary form, "1001110". This binary form has 4 1 s. The minimum integer, which is greater than "1001110" and also contains 4 1 s, is "1010011", i.e. "83", so you should output "83".
标签: Description computers Problem binary
上传时间: 2013-12-11
上传用户:libenshu01
DWT变换源代码,As a special exception, you may use this file as part of a free software library without restriction. Specifically, if other files instantiate templates or use macros or inline functions from this file, or you compile this file and link it with other files to produce an executable, this file does not by itself cause the resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU General Public License.
上传时间: 2014-12-05
上传用户:ynsnjs
The code, images and designs for this book are released under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. http://creativecommons.org/licenses/by-nc-sa/2.5/ You are free: * to copy, distribute, display, and perform the work * to make derivative works Under the following conditions: *Attribution. You must attribute the work in the manner specified by the author or licensor. *Noncommercial. You may not use this work for commercial purposes. *Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under a license identical to this one. *For any reuse or distribution, you must make clear to others the license terms of this work. *Any of these conditions can be waived if you get permission from the copyright holder. CONTACT ME Please address any questions to info@andybudd.com.
标签: Attribution-NonComm Creative released Commons
上传时间: 2014-01-19
上传用户:chfanjiang
When created, this DLL does not export any symbols. As a result, it will not produce a .lib file when it is built. If you wish this project to be a project dependency of some other project, you will either need to add code to export some symbols from the DLL so that an export library will be produced, or you can check the "doesn t produce lib" checkbox in the Linker settings page for this project.
标签: not created symbols produce
上传时间: 2015-09-01
上传用户:asdkin
From the Publisher Focus on 2D in Direct3D? teaches you all of the tools and tips you ll need to dive right in and begin creating your own games. If you have some knowledge of C or C++ and have been searching for a guide that will take your 2D programming into the third dimension, then search no more! In this book you ll learn the skills you ll need to move from the 2D API to Direct3D. Written from the point of view of a 2D programmer, Focus on 2D in Direct3D presents the fundamentals of the Direct3D API in an easy-to-use-and-understand format. Get ready to jump into the world of Direct3D!
上传时间: 2015-09-01
上传用户:ve3344
* * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS AND ANY EXPRESS * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE * GOODS OR SERVICES LOSS OF USE, DATA, OR PROFITS OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
标签: WARRANTIES SOFTWARE PROVIDED EXPRESS
上传时间: 2013-12-20
上传用户:sxdtlqqjl
This software documentation contains proprietary information of OpenAccess Software, Inc. it is provided under a license agreement containing restrictions on use and disclosure and is also protected by copyright law. Reverse engineering of the software is prohibited. If this software/documentation is delivered to a U.S. Government Agency, then it is delivered with Restricted Rights and the following legend is applicable:
标签: documentation proprietary information OpenAccess
上传时间: 2015-09-03
上传用户:mpquest
The project Adventure is a simple text-based adventure game. The game, as given, involves the hero trying to find his way from a deep dark forest to home and his true love. There s very little else the player can do apart from moving from place to place. It s not really very interesting. This project can be of use beyond the given, rather boring forest adventure though. You can use it as a basis for developing your own adventure game with different, more interesting commands, areas, items, people and so on. The package ope.adventure contains classes to describe the game world.
标签: game text-based The Adventure
上传时间: 2014-01-15
上传用户:cursor
* CONSTRAINTS * This module does not handle data which is considered out of range by the * application(i.e. fixed constants which represent error condition) * * Maximum weight value must be limited to 128 to prevent an overflow * condition during the calculation. * * The internal data type must be large enough to handle the calculations. * The maximum possible internal value * = Max Input Value * (weight - 1) + Max Input Value * If a maximum weight of 128 is used, the internal data type should be 2 * times the size of the input data type.
标签: CONSTRAINTS considered module handle
上传时间: 2015-09-07
上传用户:qunquan
* DEFINITION * This a set of math functions that deal with time. The functions accept * 4-digit time values and 4-digit time of day values. Time values are * interpreted as hours-minutes and are valid if all digits are numeric and * 9 or less, except the second-to-last digit must be 5 or less. Time of day * values are valid if they conform to normally accepted clock values of * 1:00 to 12:59 for a 12-hour clock or 00:00 to 23:59 for a 24-hour clock.
标签: functions DEFINITION accept digit
上传时间: 2014-01-15
上传用户:Divine