An integer. After 100 is added, it is a full vertex number, and 168 is a full vertex number. What is this number ?, 100168

Source: Internet
Author: User

An integer. After 100 is added, it is a full vertex number, and 168 is a full vertex number. What is this number ?, 100168

Program Analysis: if the number is less than 0.1 million, add 100 to the number before the start, and then add 268 to the number before the start. If the result after the start meets the conditions, it is the result.

# Include <stdio. h>

# Include <math. h>

Int main ()

{

Long int I, x, y;

For (I = 1; I <= 100000; I ++)

{

X = sqrt (I + 100 );

Y = sqrt (I + 268 );

If (x * x = I + 100 & y * y = I + 268)

Printf ("% ld", I );

}

Return 0;

}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.