天天看點

求解一進制線性同餘方程組模版

解法:直接上模版。

擴充歐幾裡德的模版:

求解一進制線性同餘方程組模版:

題目: poj 2891 Strange Way to Express Integers

代碼: