Xenia the beginner mathematician is a third year student at elementary school. She is now learning the addition operation.
The teacher has written down the sum of multiple numbers. Pupils should ca...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:05:53   
                                阅读次数:
382
                             
                    
                        
                            
                            
                                题目链接:uva 1530 - Floating Point Numbers
题目大意:给出一个16位的二进制数,用来表示一个浮点数,第一位为符号,1~7位表示一个十进制的数s,e=63-s;剩下的8位为小数部分,默认整数部分为1,得到f,然后最后a=f*2^e,要求用科学计数法输出a。
解题思路:模拟就好了,注意0的情况特殊处理,以及科学计数法的整数部分不能为0.
...
                            
                            
                                分类:
其他好文   时间:
2014-07-22 23:02:13   
                                阅读次数:
250
                             
                    
                        
                            
                            
                                1069. The Black Hole of Numbers (20)
                            
                            
                                分类:
其他好文   时间:
2014-05-05 23:45:49   
                                阅读次数:
365
                             
                    
                        
                            
                            
                                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
                             
                    
                        
                            
                            
                                A regular palindrome is a string of numbers or letters that is the same forward as backward. For example, the string "ABCDEDCBA" is a palindrome because it is the same when the string is read from lef...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 10:33:09   
                                阅读次数:
332
                             
                    
                        
                            
                            
                                21、Amicable numbersLet d(n) be defined as the sum 
of proper divisors ofn(numbers less thannwhich divide evenly inton). If d(a) 
=band d(b) =a, whereab,...
                            
                            
                                分类:
其他好文   时间:
2014-05-02 09:28:12   
                                阅读次数:
776
                             
                    
                        
                            
                            
                                You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 22:08:19   
                                阅读次数:
366
                             
                    
                        
                            
                            
                                You are given two linked lists representing two 
non-negative numbers. The digits are stored in reverse order and each of their 
nodes contain a single ...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 20:18:54   
                                阅读次数:
425
                             
                    
                        
                            
                            
                                题目//f(1) = 1, f(2) = 1, f(n > 2) = f(n - 1) + 
f(n - 2)import java.io.*;import java.util.*;import java.math.*;public class Main 
{ /** * @xqq ...
                            
                            
                                分类:
编程语言   时间:
2014-05-01 18:55:52   
                                阅读次数:
450
                             
                    
                        
                            
                            
                                Given a collection of numbers, return all possible permutations.
For example,
[1,2,3] have the following permutations:
[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2],
 and [3,2,1].
分析:暂时不用...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 17:06:52   
                                阅读次数:
348