摘要:
问题:给定两个正整数,计算这两个数的最小公倍数并写出算法。Input输入包含多组测试数据,每组只有一行,包括两个不大于1000的正整数.Output对于每个测试用例,给出这两个数的最小公倍数,每个实例输出一行。Sample Input10 14Sample Output70回答:#include ... 阅读全文
posted @ 2015-05-12 10:18
chaoer
阅读(251)
评论(0)
推荐(0)
摘要:
问题:Consider a three-parameter recursive function w(a, b, c):if a 20 or b > 20 or c > 20, then w(a, b, c) returns:w(20, 20, 20)if a #include cons... 阅读全文
posted @ 2015-05-12 10:02
chaoer
阅读(169)
评论(0)
推荐(0)
摘要:
问题:InputThe input consists of one or more sets of strings, followed by a final line containing only the value 0. Each set starts with a line containin... 阅读全文
posted @ 2015-05-12 09:42
chaoer
阅读(319)
评论(0)
推荐(0)

浙公网安备 33010602011771号