Yroot of High-Precisions (luogu P2293 [HNOI2004]高精度开根)

Background \text{Background} Background

I’ve accepted \text{I've accepted} I’ve accepted  a very good problem  \text{ a very good problem }  a very good problem  about High-Precisions and become \text{about High-Precisions and become} about High-Precisions and become
a little interested in it. (Copy my templates.) \text{a little interested in it. (Copy my templates.)} a little interested in it. (Copy my templates.)

Description \text{Description} Description

Given interger  N , k .  Please compute  k N . \text{Given interger }N,k.\text{ Please compute }^k\sqrt{N}. Given interger N,k. Please compute kN .

Solution \text{Solution} Solution

The easiest way I’ve got first is binary search. \text{The easiest way I've got first is binary search.} The easiest way I’ve got first is binary search.
To binary search for answer. For each answer  a , use Quick-Power to  \text{To binary search for answer. For each answer }a\text{, use Quick-Power to } To binary search for answer. For each answer a, use Quick-Power to 
compute  a k . \text{compute }a^k. compute ak.
Time-complexity is  O ( log ⁡ n 2 k ) . \text{Time-complexity is }O(\log n^2k). Time-complexity is O(logn2k).

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值