A Mathematical Curiosity

baidu_31978 6 0 PDF 2021-01-04 05:01:59

Problem Description Given two integers n and m, count the number of pairs of integers (a,b) such that 0 < a < b < n and (a2+b2 +m)/(ab) is an integer. This problem contains multiple test cases! The first line of a multiple input is an integer N, then a blank line followed by N input blocks.

用户评论
请输入评论内容
评分:
暂无评论