Skip to content
Snippets Groups Projects
Select Git revision
  • 396696d8ee2e1afbe08ab44b655d7ab6dcaa6984
  • master default protected
2 results

splay_tests.txt

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)