F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

A Math Problem

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 11325    Accepted Submission(s): 3403


Problem Description
You are given a positive integer n, please count how many positive integers k satisfy $k^k \leq n$.
 

Input
There are no more than 50 test cases.

Each case only contains a positivse integer n in a line.

$1 \leq n \leq 10^{18}$
 

Output
For each test case, output an integer indicates the number of positive integers k satisfy $k^k \leq n$ in a line.
 

Sample Input
1 4
 

Sample Output
1 2
 

Source
 

Statistic | Submit | Discuss | Note
Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-04-25 13:35:56, Gzip enabled