結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
62,848 KB
testcase_01 AC 81 ms
62,796 KB
testcase_02 AC 106 ms
62,784 KB
testcase_03 AC 99 ms
61,388 KB
testcase_04 AC 91 ms
62,324 KB
testcase_05 AC 99 ms
62,412 KB
testcase_06 AC 85 ms
61,692 KB
testcase_07 AC 86 ms
62,508 KB
testcase_08 AC 87 ms
61,592 KB
testcase_09 AC 92 ms
62,764 KB
testcase_10 AC 74 ms
62,400 KB
testcase_11 AC 66 ms
62,356 KB
testcase_12 AC 89 ms
62,404 KB
testcase_13 AC 68 ms
62,720 KB
testcase_14 AC 105 ms
63,228 KB
testcase_15 AC 90 ms
61,856 KB
testcase_16 AC 92 ms
62,360 KB
testcase_17 AC 108 ms
62,016 KB
testcase_18 AC 74 ms
62,208 KB
testcase_19 AC 94 ms
61,852 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**3) <= a:
	temp = a
	j = 0
	while temp > 0:
		temp //= i
		j += 1
	ans = min(ans, i*j)
	i += 1
print(ans)

0