jus981014   2년 전

import sys
N = int(input())

for i in range(N):
    a,b = map(int,sys.stdin.readline().split())
    test = a**b
    computer_Number = test % 10
    if computer_Number == 0:
        print("10")
    else:
        print(computer_Number)

터미널에서 똑같은 입력같을 넣으면 답은 같게 나옵니다.!

lsc4719   2년 전

test = a**b

이 라인이 문제인 것 같습니다.

출처: https://stackoverflow.com/ques...

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