赞
踩

#include <stdio.h> #include <math.h> int main(){ int i,j; int min=20000; for(i=2020;i<99999;i++){ for(j=i+1;j<9999;j++){ if((j*j)-(i*i)==(i*i)-(2019*2019)){ if(i+j<min){ min=i+j; } } } } printf("%d",min); return 0; }
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。