#include using namespace std; //D=n^2-m^2 , 1 <= n,m <= Nを満たす組み合わせの数え上げ int count(int d,int N){ int c = 0; for(int i=0;i*i