首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 【HDU】1063 - Exponentiation(java - BigDecimal)

    点击打开题目 Exponentiation Time Limit: 2000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java

    28710编辑于 2025-08-27
  • 来自专栏全栈程序员必看

    HDU Exponentiation 1063 Java大数题解

    Exponentiation Time Limit: 1000/500 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total

    30010编辑于 2022-07-08
  • 来自专栏饶文津的专栏

    【POJ 1001】Exponentiation (高精度乘法+快速幂)

    将R用字符串读进来,找到小数点的位置,然后转为整数。 用高精度乘法和快速幂计算。输出时要确定一下小数点的位置。

    75610发布于 2020-06-02
  • 来自专栏Grace development

    一道看似简单的面试题

    先亮出答案 function exponentiation($number) { if ($number < 0) { return false; } if ( ($number & ($number - 1)) == 0) { return true; } else { return false; } } exponentiation (2); exponentiation (8); exponentiation (16); exponentiation (32); exponentiation (128); 这是查阅后的最最标准的答案

    65820发布于 2018-09-18
  • 来自专栏黯羽轻扬

    ES2016

    一.特性概览 ES2016(也就是ES7)发布于2016年6月,仅包含2个新特性: Array.prototype.includes Exponentiation operator 一个数组包含性检测方法 也就是说不判断数组中的元素是否存在) 具体的,includes比较相等性时采用SameValueZero算法: 对象仅比较引用 基本值比较类型和值 值比较中存在2个特例,+0与-0相等,NaN与NaN相等 三.Exponentiation

    76540发布于 2019-06-12
  • 来自专栏数据结构与算法

    poj 2406 Power Strings 周期问题

    If we think of concatenation as multiplication, exponentiation by a non-negative integer is defined in 如果我们想到的exponentiation concatenation繁殖,用非负整数的定义为:在正常的方式(0 =“”(空字符串)和(N + 1)=(n×公尺)。

    66350发布于 2018-04-13
  • 来自专栏一个会写诗的程序员的博客

    为什么 String 的 hashCode() 方法使用 31 来计算?

    i>th character of the string, {@code n} is the length of * the string, and {@code ^} indicates exponentiation

    54810发布于 2020-03-25
  • 来自专栏申龙斌的程序人生

    通过欧拉计划学Rust编程(第650题)

    第四步 加速pow()运算 计算一个数的n次方,有一个常用的算法可以加速,称为Exponentiation by squaring算法,相关网站: https://en.wikipedia.org/wiki /Exponentiation_by_squaring 修改后程序运行速度提高,多运行一段时间,可以计算出S(5000)。 https://rob.co.bb/posts/2019-02-10-modular-exponentiation-in-rust/ 这次优化彻底去掉了大整数运算,速度提升了不知多少倍。 xy.0 < 0 { xy.0 += module; } xy.0 } // https://rob.co.bb/posts/2019-02-10-modular-exponentiation-in-rust count); } None => {} } } } 优化要点: 1)不要轻易用大整数运算库 2)质因子分解 3)同余定理 4)Exponentiation

    99310发布于 2020-02-17
  • 来自专栏C/C++基础

    Linux 命令(231)—— let 命令(builtin)

    , ~ logical and bitwise negation ** exponentiation *, /, % multiplication

    67820编辑于 2022-12-25
  • 【POJ】2406 - Power Strings(KMP)

    If we think of concatenation as multiplication, exponentiation by a non-negative integer is defined in

    16210编辑于 2025-08-26
  • 来自专栏数据结构与算法

    POJ2406 Power Strings(KMP)

    If we think of concatenation as multiplication, exponentiation by a non-negative integer is defined in

    33920发布于 2018-07-05
  • 来自专栏小码匠和老码农

    小码匠的信息学江湖:【模板】快速幂

    problem/P1226 题解:https://www.luogu.com.cn/problem/solution/P1226 参考资料 快速幂 https://oi-wiki.org/math/binary-exponentiation

    35020编辑于 2023-08-31
  • 来自专栏奇妙的算法世界

    power Strings(next数组求循环节长度)

    If we think of concatenation as multiplication, exponentiation by a non-negative integer is defined in

    1.1K10发布于 2020-10-23
  • 来自专栏JavaEdge

    机器学习实战(二) - 单变量线性回归Model and Cost Function1 模型概述 - Model Representation2 代价函数 - Cost Function3 代价函数(

    superscript “(i)” in the notation is simply an index into the training set, and has nothing to do with exponentiation

    59010发布于 2018-12-26
  • 来自专栏技术杂记

    fio基础7

    Supported operators are: addition (+) subtraction (-) multiplication (*) division (/) modulus (%) exponentiation

    62820编辑于 2022-04-24
  • 来自专栏乱码李

    ES2016 和 ES2017 学习

    ECMAScript 2016 ES2016 只有两个新特性 Array.prototype.includes 求冥运算(Exponentiation Operator) Array.prototype.includes 幂运算 Exponentiation operator ES2016 新增幂运算符改进语法 3 ** 3 // 27 Math.pow(5, 2) === 5 ** 2 // true let a =

    82420发布于 2021-11-26
  • 来自专栏ml

    poj------2406 Power Strings

    If we think of concatenation as multiplication, exponentiation by a non-negative integer is defined in

    70680发布于 2018-03-22
  • 来自专栏向治洪

    ES7和ES8新特性介绍

    ES7新增特性比较少,在这个版本中,ES7只增加了两种新特性:Array.prototype.includes和Exponentiation Operator(求冥运算)。 , 'b', 'c'].includes('a')) // === true) console.log(['a', 'b', 'c'].includes('a', 1)) // === false) Exponentiation

    5.9K60发布于 2018-01-26
  • 来自专栏小码匠和老码农

    【小码匠自习室】double的坑好深:ABC185 - C - abc285_brutmhyhiizp

    此时,可以考虑用快速幂来解决精度问题 知识点 快速幂 https://oi-wiki.org/math/binary-exponentiation/ 题目 在另一个世界的AtCoder上举办的AtCoder

    78420编辑于 2023-03-06
  • 来自专栏向治洪

    ES7、ES8新特性

    ES7新增特性比较少,在这个版本中,ES7只增加了两种新特性:Array.prototype.includes和Exponentiation Operator(求冥运算)。 , 'b', 'c'].includes('a')) // === true) console.log(['a', 'b', 'c'].includes('a', 1)) // === false) Exponentiation

    3.9K50发布于 2018-02-06
领券