quadratech188   2년 전

제 컴퓨터에선 Python3, PyPy3으로 둘다 잘 돌아가는데 왜 채점할 땐 시작하자마자 TypeError가 날까요...

jtw7913   2년 전

4
1 9 8 7

여기서 

Traceback (most recent call last):
  File "/tmp/main.py", line 2, in <module>
    import user_code
  File "/tmp/user_code.py", line 34, in <module>
    print(solution(n, 0))
          ^^^^^^^^^^^^^^
  File "/tmp/user_code.py", line 29, in solution
    result = max(solution(n - 3, new_bitmap) + area(lengths[a], lengths[b], lengths[c]), result)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'float' and 'complex'
</module></module>

나오네요

quadratech188   2년 전

lengths를 정렬해야 했네요

감사합니다

댓글을 작성하려면 로그인해야 합니다.