본문 바로가기
python-algorithm

[백준] 15995

by 무적김두칠 2021. 1. 4.

1
2
3
4
import sys
a,m= map(int,sys.stdin.readline().split())
for i in range(1,10000):
    if (a*i)%m ==1 : print(i) ; break
cs
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 16485  (0) 2021.01.05
[백준] 16479  (0) 2021.01.04
[백준] 15953  (0) 2021.01.04
[백준] 15923  (0) 2021.01.04
[백준] 15917  (0) 2021.01.04

댓글