Can we apply extend Extended Euclidean algorithm for negative numbers?
Like for 3*x-4*y=1 output will be x=3 , y=2 .
# | User | Rating |
---|---|---|
1 | jiangly | 3898 |
2 | tourist | 3840 |
3 | orzdevinwang | 3706 |
4 | ksun48 | 3691 |
5 | jqdai0815 | 3682 |
6 | ecnerwala | 3525 |
7 | gamegame | 3477 |
8 | Benq | 3468 |
9 | Ormlis | 3381 |
10 | maroonrk | 3379 |
# | User | Contrib. |
---|---|---|
1 | cry | 168 |
2 | -is-this-fft- | 165 |
3 | Dominater069 | 161 |
4 | atcoder_official | 160 |
4 | Um_nik | 160 |
6 | djm03178 | 157 |
7 | adamant | 153 |
8 | luogu_official | 151 |
9 | awoo | 149 |
10 | TheScrasse | 146 |
Can we apply extend Extended Euclidean algorithm for negative numbers?
Like for 3*x-4*y=1 output will be x=3 , y=2 .
Name |
---|
Why don't you just try it out?
Btw, even if it doesn't work, you can solve 3*x + 4*y = 1, receive the answer (x, y) to this modified problem, and the answer to your original problem will be (x, -y).
ok got it!, Thanks.