diff options
| author | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-06-27 11:17:34 +0200 |
|---|---|---|
| committer | Paul Jungeblut <paul.jungeblut@gmail.com> | 2016-06-27 11:17:34 +0200 |
| commit | 9e625b89bac7e8daaf583e215f3a0df3dc250bb2 (patch) | |
| tree | ab295455fce73f726bd97a325a61d95aca77a508 /math/extendedEuclid.cpp | |
| parent | 5bb1ac05882e0df43a2afe0c363e0f503f51c357 (diff) | |
Math section rebuild, merged convinience and sonstiges section.
Diffstat (limited to 'math/extendedEuclid.cpp')
| -rw-r--r-- | math/extendedEuclid.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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 +} |
