結果

問題 No.1176 少ない質問
ユーザー Udit GuptaUdit Gupta
提出日時 2020-08-21 22:10:02
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 1,033 bytes
コンパイル時間 158 ms
コンパイル使用メモリ 82,348 KB
実行使用メモリ 63,904 KB
最終ジャッジ日時 2024-04-23 05:56:18
合計ジャッジ時間 1,821 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
61,484 KB
testcase_01 AC 46 ms
62,584 KB
testcase_02 AC 47 ms
62,696 KB
testcase_03 AC 47 ms
61,268 KB
testcase_04 AC 47 ms
63,248 KB
testcase_05 AC 46 ms
62,044 KB
testcase_06 AC 46 ms
63,904 KB
testcase_07 AC 45 ms
61,852 KB
testcase_08 AC 45 ms
62,168 KB
testcase_09 AC 50 ms
62,304 KB
testcase_10 AC 51 ms
63,240 KB
testcase_11 AC 49 ms
62,540 KB
testcase_12 AC 49 ms
63,032 KB
testcase_13 AC 51 ms
62,884 KB
testcase_14 AC 50 ms
62,472 KB
testcase_15 AC 49 ms
62,648 KB
testcase_16 AC 50 ms
62,976 KB
testcase_17 AC 47 ms
61,672 KB
testcase_18 AC 48 ms
61,912 KB
testcase_19 AC 51 ms
62,928 KB
testcase_20 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

#				 Author: Udit "luctivud" Gupta @ https://www.linkedin.com/in/udit-gupta-1b7863135/					 #


import math;   		from collections import *
import sys;   		from functools import reduce
import time;   		from itertools import groupby

# sys.setrecursionlimit(10**6)

# def input()         : return sys.stdin.readline()
def get_ints()      : return map(int, input().strip().split())
def get_list()      : return list(get_ints())
def get_string()    : return list(input().strip().split())
def printxsp(*args) : return print(*args, end="")
def printsp(*args)  : return print(*args, end=" ")


DIRECTIONS = [(+0, +1), (+0, -1), (+1, +0), (+1, -1)] 
NEIGHBOURS = [(-1, -1), (-1, +0), (-1, +1), (+0, -1),\
              (+1, +1), (+1, +0), (+1, -1), (+0, +1)]



# MAIN >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

# for _test_ in range(int(input())): 


a = int(input())
ans = float('inf')
i = 2
while (i**4) <= a:
	temp = a
	j = 0
	while temp > 0:
		temp //= i
		j += 1
	ans = min(ans, i*j)
	i += 1
print(ans)

0