Skip to content
Snippets Groups Projects
Select Git revision
  • 0112bbacff866f6c8004745ec3af4134653627b6
  • master default
  • zs2021
  • zs1920
4 results

euklides-trikovy.py

Blame
  • euklides-trikovy.py 176 B
    #!/usr/bin/env python3
    # Největší společný dělitel: Euklidův algoritmus s pár triky navíc
    
    x = int(input())
    y = int(input())
    
    while y > 0:
        x, y = y, x%y
    
    print(x)