Hello Kiki Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 258 Accepted Submission(s): 111 Problem Description One day I was shopping in the supermarket. There was a cashier counting coins serio…
Hello Kiki Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2734 Accepted Submission(s): 1010 Problem Description One day I was shopping in the supermarket. There was a cashier counting coins…
void extendgcd(long long a,long long b,long long &d,long long &x,long long &y) { ){d=a;x=;y=;return;} extendgcd(b,a%b,d,y,x); y -= x*(a/b); } //求解A+C*x=B(mod D),返回最小非负整数x long long ModX(long long A,long long B,long long C,long long D) { if(A==…