BOJ - 2475번 검증수 (Python)

woga·2021년 1월 8일
post-thumbnail

문제 출처: https://www.acmicpc.net/problem/2475

난이도

Bronze 5


통과 코드

import math

if __name__ == '__main__':
    arr = list(map(int,input().split()))
    sum = 0
    for x in arr:
        sum += math.pow(x,2)
    print(round(sum%10))
profile
안드 개발자의 개인 탐구 및 공부 아카이빙

0개의 댓글