Skip to content
Snippets Groups Projects
Select Git revision
  • 4d1eac78034b0cc3580fea5eb1583df2b2ec4d2c
  • master default protected
2 results

crypto.tex

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)