码迷,mamicode.com
首页 >  
搜索关键字:math    ( 11719个结果
leetcode_Rectangle Area _easy
Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and top right corner as shown in the figure. Assume that the tota...
分类:其他好文   时间:2015-06-24 22:41:14    阅读次数:119
python学习随笔
1 高阶函数的使用:import mathdef add(x, y, f): return f(x) + f(y)sq = math.sqrtprint add(25, 9,sq)2. map函数:map()函数map()是 Python 内置的高阶函数,它接收一个函数 f 和一个 list,...
分类:编程语言   时间:2015-06-24 20:42:58    阅读次数:206
python 模块导入
1. 模块导入:要使用一个模块,我们必须首先导入该模块。Python使用import语句导入一个模块。例如,导入系统自带的模块 math:import math你可以认为math就是一个指向已导入模块的变量,通过该变量,我们可以访问math模块中所定义的所有公开的函数、变量和类:>>> math.....
分类:编程语言   时间:2015-06-24 20:36:11    阅读次数:125
URAL 2025. Line Fighting (math)
2025. Line Fighting Time limit: 1.0 second Memory limit: 64 MB Boxing, karate, sambo… The audience is sick of classic combat sports. That is why a popular sports channel launches a new compet...
分类:其他好文   时间:2015-06-24 16:35:10    阅读次数:134
Java_Day08(javadoc,jdk帮助文档,代码块,继承)
1:如何制作帮助文档(了解) (1)写一个类 (2)加入文档注释 (3)通过javadoc工具生成即可 javadoc -d 目录 -author -version ArrayTool.java2:通过JDK提供的API学习了Math类(掌握) (1)API(Application Program....
分类:编程语言   时间:2015-06-24 08:11:41    阅读次数:232
Md5加密
import java.math.BigInteger;import java.security.MessageDigest;import java.security.NoSuchAlgorithmException;public class MD5Utils { /** * 使用md5的算法进行....
分类:其他好文   时间:2015-06-24 01:56:02    阅读次数:87
SGU 299.Triangle
题意: 给出n(<=1000)条线段的长度ai(<=10^500),输出任意三条能组成三角形的边.没有输出3个0.Solution: 简单题.只是要处理高精度. java大法好.import java.util.*;import java.math.*;public class Soluti...
分类:其他好文   时间:2015-06-24 00:43:19    阅读次数:114
四则运算app总结
程序有难度和单项练习,但设计了每次只出5到题,如果做错的话会把错题加入到数据库中,然后通多错题巩固选项可以对错题进行训练。代码:普通选项代码: 1 package com.example.szys; 2 3 import java.math.*; 4 import java.util.Ra...
分类:移动开发   时间:2015-06-23 23:05:49    阅读次数:206
URAL 1796. Amusement Park (math)
1796. Amusement Park Time limit: 1.0 second Memory limit: 64 MB On a sunny Sunday, a group of children headed by their teacher came to an amusement park. Aunt Frosya,who was a very kind and q...
分类:其他好文   时间:2015-06-23 17:50:55    阅读次数:124
js巧用apply方法实现数组最值以及合并
尽管js的apply方法在平常的使用中并不多见,但是在某些地方使用的还是很有帮助性的,这里就和大家说两个比较实用的例子:1.数组最大最小值 求数组中的最大最小值,js有相应的方法:Math.min(),Math.max(),但是这两个方法有个不方便的地方就是其参数不能是数组,而是单个元素值,即(pa...
分类:移动开发   时间:2015-06-23 15:06:54    阅读次数:166
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!