码迷,mamicode.com
首页 >  
搜索关键字:math    ( 11719个结果
Problem K 栈
Description A math instructor is too lazy to grade a question in the exam papers in which students are supposed to produce a complicated formula for t...
分类:其他好文   时间:2015-07-26 20:43:23    阅读次数:144
C# Math类简介
Math.abs()计算绝对值。Math.acos()计算反余弦值。Math.asin()计算反正弦值。Math.atan()计算反正切值。Math.atan2()计算从x坐标轴到点的角度。Math.ceil()将数字向上舍入为最接近的整数。Math.cos()计算余弦值。Math.exp()计算指...
分类:Windows程序   时间:2015-07-26 19:11:36    阅读次数:124
Lazy Math Instructor
Time Limit:1000MSMemory Limit:10000KTotal Submissions:3721Accepted:1290DescriptionA math instructor is too lazy to grade a question in the exam papers...
分类:其他好文   时间:2015-07-26 19:07:46    阅读次数:115
Javascript Math.ceil()与Math.round()与Math.floor()区别
Math.ceil()向上舍入123alert(Math.ceil(20.1)) //输出 21alert(Math.ceil(20.5)) //输出 21alert(Math.ceil(20.9)) //输出 21Math.round标准的四舍五入123alert(Math.round(20.1)...
分类:编程语言   时间:2015-07-26 15:32:52    阅读次数:101
Python导入模块的三种形式
Python导入模块的3中方式:1、import module_name这样在程序里就可以通过module_name.metnod_name()的方式访问模块里的函数了Example:>>>import math>>> math.sqrt(5)2.23606797749979>>> math.pow...
分类:编程语言   时间:2015-07-25 21:25:39    阅读次数:161
视力表项目开发笔记
1,图片的旋转角度可以用math类的toRadians方法计算得出2,图片或者面板的长宽都是以像素计算3,在panel上绘制文字要使用Graphics类,绘制图片或对图片进行特殊操作要用Graphics2D类的drawImage方法4,Graphics(2D)类的fillRect方法是在面板上绘制一...
分类:其他好文   时间:2015-07-25 12:10:21    阅读次数:123
hdu 1023 卡特兰数
import java.math.BigInteger; import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner in = new Scanner(System.in); BigInteger[] a = new BigInte...
分类:其他好文   时间:2015-07-25 01:50:33    阅读次数:129
HDU 4824 双调旅行商问题
由于跳转一次需要400,大于在扇道内转一圈,所以应尽可能少的跳转扇道,就转换成了双调旅行商问题, 即从0区开始访问到最大的区域,再返回0区,所有中间点需走到一次 #include "stdio.h" #include "string.h" #include "math.h" #include "algorithm" using namespace std; struct node { ...
分类:其他好文   时间:2015-07-24 22:45:35    阅读次数:198
js处理小数
?? 1.丢弃小数部分,保留整数部分 js:parseInt(值) 2.向上取整,有小数就整数部分加1 js: Math.ceil(值) 3,四舍五入. js: Math.round(值) 4,向下取整 js: Math.floor(值) 5,四舍五入为指定小数位数的数字。 var num = new Number(3333333333.67); num.to...
分类:Web程序   时间:2015-07-24 16:18:00    阅读次数:185
判断鼠标进入容器的方向小Demo
参考资料: 贤心博客:http://sentsin.com/web/112.html, Math.atan2(y,x) 解释 :http://www.w3school.com.cn/jsref/jsref_atan2.asp;Demo:Demo截图:代码: Document ...
分类:其他好文   时间:2015-07-24 12:16:01    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!