시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 (추가 시간 없음) 1024 MB115545.455%

문제

Write a function optimizing:

  • input parameter: an int-type object n satisfying $0\le$n$<2^{63}$
  • return value: the 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])

출처

High School > 한국과학영재학교 > 2021 Fall PPS Final Mock Exam 4번

제출할 수 있는 언어

PyPy3

채점 및 기타 정보

  • 예제는 채점하지 않는다.