[프로그래머스] 나머지가 1이 되는 수 찾기

Jin Lee·2022년 5월 15일
0

프로그래머스 Lv.1

목록 보기
13/32
post-thumbnail

문제 링크

https://programmers.co.kr/learn/courses/30/lessons/87389

문제 설명

  • 단순 구현 문제

코드

def solution(n):

    for i in range(2, n):
        if n % i == 1:
            return i
profile
깃허브 : https://github.com/jinlee9270

0개의 댓글