摘要:
2014-12-1212:14:58思路:嘛,一道exgcd水题,列下方程:k*(m - n) + p*L = y - x,以k为a,L为b,(m-n)为x,p为y,y-x为c,建立:ax+by=c,若gcd(m-n,L)|c则有解,否则无解。最后算出解要转化为最小正整数(形式:x0 + t * (... 阅读全文
摘要:
2014-12-1200:18:21思路:暴力枚举运算符..... One line of output for each of the first 20 possible expressions -- then a line with a single integer that is the t... 阅读全文