摘要:
有三个正整数a,b,c(0<a,b,c<10^6),其中c不等于b。若a和c的最大公约数为b,现已知a和b,求满足条件的最小的c。 Input第一行输入一个n,表示有n组测试数据,接下来的n行,每行输入两个正整数a,b。 Output输出对应的c,每组测试数据占一行。 Sample Input Sa 阅读全文
posted @ 2017-07-07 21:16
糖小俊
阅读(219)
评论(0)
推荐(0)
摘要:
You want to processe a sequence of n distinct integers by swapping two adjacent sequence elements until the sequence is sorted in ascending order. The 阅读全文
posted @ 2017-07-07 21:08
糖小俊
阅读(407)
评论(0)
推荐(0)

浙公网安备 33010602011771号