码迷,mamicode.com
首页 >  
搜索关键字:b - bear and three m    ( 2708个结果
Fill
Description There are three jugs with a volume of a, b and c liters. (a, b, and c are positive integers not greater than 200). The first and the second jug are initially empty, while the third ...
分类:其他好文   时间:2014-11-26 22:47:13    阅读次数:357
常用函数
nexta = {"one", "two", "three"}for k, v in next, a do print(k, v)end注:返回表中的下一个函数table.maxn 获取table中key的最大值type可以返回一个描述给定值的类型的字符串。
分类:其他好文   时间:2014-11-26 22:21:25    阅读次数:175
Scala中的Map和Set
Map和Set中常用的一些方法。 var jetset = Set("one","two") jetset += "three" println(jetset.contains("four")) println(jetset.contains("three")) jetset.foreach(arg => println(arg)) print(jetset.size) import scal...
分类:其他好文   时间:2014-11-26 11:26:57    阅读次数:164
python django 的启动脚本
#!/bin/bash # Replace these three settings. PROJDIR="/var/www/t_receive_interface" PIDFILE="/var/run/django.pid" SOCKET="/tmp/django.sock" OUTLOGFILE="/var/log/django/access.out.log" ERRLOGFILE="/v...
分类:编程语言   时间:2014-11-26 01:33:13    阅读次数:194
three.js 源码注释(二十五)Core/Geometry.js
Geometry是场景中由顶点和三角面构成的几何体对象的基类,保存描述几何体所有必要的数据.Geometry对象的功能函数采用定义构造的函数原型对象来实现. 用法:var geometry = new THREE.Geometry(); geometry.vertices.push( new THREE.Vector3( -10, 10, 0 ), new THREE.Vector3( -10, -10, 0 ), new THREE.Vector3( 10, -10, 0 ) ...
分类:Web程序   时间:2014-11-25 18:36:31    阅读次数:302
three.js 源码注释(二十四)Core/Face4.js
Face3对象的构造函数.用来在四维空间内通过参数a,b,c,d, normal, color, materialIndex创建一个四角面对象.Face4对象的功能函数采用 定义构造的函数原型对象来实现. NOTE:Face4方法已经删除,使用Face3替代,这里保留为了向下兼容. 用法: var a=0,b=1,c=2,d=3;var normal = new THREE.Vector3( 0, 1, 0 ); var color = new THREE.Color( 0xffaa00 ); va...
分类:Web程序   时间:2014-11-25 18:36:14    阅读次数:272
three.js 源码注释(二十三)Core/Face3.js
Face3对象的构造函数.用来在三维空间内通过参数a,b,c, normal, color, materialIndex创建一个三角面对象.Face3对象的功能函数采用 定义构造的函数原型对象来实现. 用法: var a=0,b=1,c=2; var normal = new THREE.Vector3( 0, 1, 0 ); var color = new THREE.Color( 0xffaa00 ); var face = new THREE.Face3( a, b, c, normal, col...
分类:Web程序   时间:2014-11-25 18:34:56    阅读次数:261
Linux服务器关闭SeLinux的方法
[danny@localhost ~]$ cat /etc/selinux/config # This file controls the state of SELinux on the system.# SELINUX= can take one of these three values:# e...
分类:系统相关   时间:2014-11-25 18:28:37    阅读次数:281
3Sum Closest
Given an arraySofnintegers, find three integers inSsuch that the sum is closest to a given number, target. Return the sum of the three integers. You m...
分类:其他好文   时间:2014-11-25 14:11:54    阅读次数:137
HUD 3706 单调队列简单题
Problem Description Give you three integers n, A and B.  Then we define Si = Ai mod B and Ti = Min{ Sk | i-A = 1} Your task is to calculate the product of Ti (1      不描述题意了,三行英文挺明了的,今天刚学单调队列...
分类:其他好文   时间:2014-11-24 22:35:31    阅读次数:262
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!