#19624: 一種想法


089487 (089487)


可以用struct 

struct 裡放n%m,n%2,n;

再用sort和cmp函式