码迷,mamicode.com
首页 >  
搜索关键字:implement pow    ( 4537个结果
[ARC083]Collecting Balls
Description 有一个 $n\times n$ 的矩阵,矩阵内有 $2n$ 个球。对于 $i \in [1,n]$ ,$(0,i) (i,0)$ 的位置各有一个启动后往右走/往上走的机器人,机器人撞到球会和球一起消失。问启动机器人顺序的方案数,满足所有球最后都消失。 $n \le 10^{5 ...
分类:其他好文   时间:2019-09-02 13:52:30    阅读次数:61
leetcode8 String to Integer
题目描述 Implement atoi which?converts a string to an integer. The function first discards as many whitespace characters as necessary until the first non ...
分类:其他好文   时间:2019-09-01 21:59:41    阅读次数:105
力扣50题 Pow(x,n)
本题是力扣网第50题。 实现 pow(x, n) ,即计算 x 的 n 次幂函数。 采用递归和非递归思路python实现。 ...
分类:其他好文   时间:2019-09-01 20:18:38    阅读次数:119
配置Office Excel运行Python宏脚本
基本环境 | 名称 | 版本 | | : | : | | 操作系统 | Windows 10 x64 | | Office | 2016 | 安装Python 1.下载Python安装包 登录 "https://www.python.org/downloads/windows/" 进行下载 Pyth ...
分类:编程语言   时间:2019-08-31 10:58:59    阅读次数:297
[51nod1789] 跑得比谁都快
"题面" 题解 设$f[i]$为根节点到$i$的最小耗时 设$S$为$i$的祖先集合, 可以得到 $$ f[i] = min(f[j] + (i j)^p),j \in S $$ 对于$(i j)^p$, 我们有 $$ ((i + 1) (j + 1))^p + (i j)^p \geq ((i + ...
分类:其他好文   时间:2019-08-29 18:42:30    阅读次数:98
【LeetCode】27.Linked List—Reverse Linked List l链表逆置
Reverse a singly linked list. Example: Follow up: A linked list can be reversed either iteratively or recursively. Could you implement both? 思路: 重塑链表, ...
分类:其他好文   时间:2019-08-29 16:13:39    阅读次数:92
[LeetCode] 911. Online Election 在线选举
In an election, the th?vote was cast for at time . Now, we would like to implement the following query function: will return the number of the person ...
分类:其他好文   时间:2019-08-28 00:56:16    阅读次数:110
在数据库获取某经纬度周边的商铺
$slat = $banner_content['jd']; $slng = $banner_content['wd']; $sql = "select *, ROUND(6378.138*2*ASIN(SQRT(POW(SIN(($slat*PI()/180-jd*PI()/180)/2),2)+ ...
分类:数据库   时间:2019-08-27 23:09:34    阅读次数:131
232. Implement Queue using Stacks
Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in front ...
分类:其他好文   时间:2019-08-27 10:52:01    阅读次数:80
scala基础
Scala的简介 大数据中使用Scala编写的两大框架就是kafka和Spark 1. 官方网站: https://www.scala-lang.org/ 2.特点 1.即是面向对象编程又是编写函数编程(函数可以独立于对象独自存在,不必非要在对象中) 2.和Java一样是运行在JVM之上的高级语言( ...
分类:其他好文   时间:2019-08-27 00:33:20    阅读次数:94
4537条   上一页 1 ... 68 69 70 71 72 ... 454 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!