Skip to content
Snippets Groups Projects
Select Git revision
  • 1322d6e6bd96155234a156e1dea444cba7ad9380
  • main default protected
2 results

comparable-box-dimension.tex

Blame
  • euklides-modulici.py 245 B
    #!/usr/bin/env python3
    # Největší společný dělitel: Euklidův algoritmus s modulem
    
    x = int(input())
    y = int(input())
    
    while x > 0 and y > 0:
        if x > y:
            x %= y
        else:
            y %= x
    
    if x > 0:
        print(x)
    else:
        print(y)