摘要:
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 * (... 阅读全文
posted @ 2014-12-12 12:18
Naturain
阅读(124)
评论(0)
推荐(0)
摘要:
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... 阅读全文
posted @ 2014-12-12 00:29
Naturain
阅读(126)
评论(0)
推荐(0)