From 9e625b89bac7e8daaf583e215f3a0df3dc250bb2 Mon Sep 17 00:00:00 2001 From: Paul Jungeblut Date: Mon, 27 Jun 2016 11:17:34 +0200 Subject: Math section rebuild, merged convinience and sonstiges section. --- math/extendedEuclid.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'math/extendedEuclid.cpp') diff --git a/math/extendedEuclid.cpp b/math/extendedEuclid.cpp index 6d9490f..65d6ed9 100644 --- a/math/extendedEuclid.cpp +++ b/math/extendedEuclid.cpp @@ -1,6 +1,6 @@ -//Accepted in Aufgabe mit Forderung: |X|+|Y| minimal (primaer) und X<=Y (sekundaer) -//hab aber keinen Beweis dafuer :) -ll x, y, d; //a * x + b * y = d = ggT(a,b) +// Accepted in Aufgabe mit Forderung: |X|+|Y| minimal (primaer) und X<=Y (sekundaer). +// Hab aber keinen Beweis dafuer :) +ll x, y, d; // a * x + b * y = d = ggT(a,b) void extendedEuclid(ll a, ll b) { if (!b) { x = 1; y = 0; d = a; return; @@ -8,4 +8,4 @@ void extendedEuclid(ll a, ll b) { extendedEuclid(b, a % b); ll x1 = y; ll y1 = x - (a / b) * y; x = x1; y = y1; -} \ No newline at end of file +} -- cgit v1.2.3