码迷,mamicode.com
首页 >  
搜索关键字:numbers range    ( 16974个结果
uva 1530 - Floating Point Numbers(数论)
题目链接: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
PAT 1069. The Black Hole of Numbers (20)
1069. The Black Hole of Numbers (20)
分类:其他好文   时间:2014-05-05 23:45:49    阅读次数:365
【LeetCode OJ】Sum Root to Leaf Numbers
# Definition for a binary tree node# class TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right ...
分类:其他好文   时间:2014-05-05 22:56:23    阅读次数:419
python 列表推导式----轻量级循环
列表推导式(list comprehension)是利用其他列表创建新列表(类似于数学术语中的集合推导式)的一种方法。它的工作方式类似于for循环,也很简单:In [39]: [x*x for x in range(10)]Out[39]: [0, 1, 4, 9, 16, 25, 36, 49, ...
分类:编程语言   时间:2014-05-05 22:21:48    阅读次数:422
Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.If such arrangement is not possibl...
分类:其他好文   时间:2014-05-05 22:19:17    阅读次数:312
线段树入门小结
QUE:线段树?称谓:从刘汝佳的书中得知,“这种数据结构在学术界没有统一的术语,但线段树是最常见的叫法。其他叫法包括区间树(interval tree)、范围树(range tree)等,但这些属于在特定的场合(如计算几何)中有着特殊的意义”。怎么叫看读者的心情,以下统一用线段树称呼。先来作一些了解...
分类:其他好文   时间:2014-05-02 16:21:56    阅读次数:347
[Unity3D]引擎崩溃、异常、警告、BUG与提示总结及解决方法
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
UVA 之401 - Palindromes
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-23题
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
zoj Fibonacci Numbers ( java , 简单 ,大数)
题目//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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!