시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
---|---|---|---|---|---|
2 초 (추가 시간 없음) | 1024 MB | 11 | 5 | 5 | 45.455% |
Write a function optimizing
:
int
-type object n
satisfying $0\le$n
$<2^{63}$int
-type object f(n)
where f
is the following Python function:def f(n): assert type(n)==int and n>=0 g=lambda n:sum([x**3 for x in range(n)]) x="" k=0 while n>=len(x): x+=str(g(k)) k+=1 return int(x[n])
PyPy3