CARVIEW |
Select Language
HTTP/2 200
date: Sat, 11 Oct 2025 10:37:41 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
x-frame-options: DENY
x-content-type-options: nosniff
x-xss-protection: 1;mode=block
vary: accept-encoding
cf-cache-status: DYNAMIC
content-encoding: gzip
set-cookie: _csrf-frontend=333cdcb173b944a0c137a1274706e2e3abc8b29635471a76ca23b340f5011669a%3A2%3A%7Bi%3A0%3Bs%3A14%3A%22_csrf-frontend%22%3Bi%3A1%3Bs%3A32%3A%220wRDWycOpiy5P6xug_kPoFMbV6AQdZD2%22%3B%7D; HttpOnly; Path=/
cf-ray: 98cdb939abecc462-BLR
Project Euler, Problem #9, C - Pastebin.com
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* A Pythagorean triplet is a set of three natural numbers, a < b < c,
- * for which, a^2 + b^2 = c^2. For example,
- * 3^2 + 4^2 = 9 + 16 = 25 = 5^2. There exists exactly one Pythagorean
- * triplet for which a + b + c = 1000. Find the product abc. */
- #include <stdio.h>
- int main()
- {
- int x, y, z;
- for(z = 997; z > 2; z--)
- for(y = (999 - z) / 2 + 1; y > 1; y--)
- {
- x = 1000 - (y + z);
- if(x * x + y * y == z * z)
- {
- printf("%d\n", y * z * x);
- return(0);
- }
- }
- }
- /* 31875000
- *
- * real 0m0,003s
- * user 0m0,003s
- * sys 0m0,000s */
Advertisement
Add Comment
Please, Sign In to add comment
-
⭐✅ MAKE $2000 INSTANTLY ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 2 sec ago | 0.24 KB
-
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐⭐⭐
JavaScript | 11 sec ago | 0.24 KB
-
✅⭐ Make huge profits on trading ✅ NEVER SEEN...
JavaScript | 21 sec ago | 0.24 KB
-
⭐✅ Marketplace Glitch ✅ Working ✅ NEVER SEEN...
JavaScript | 33 sec ago | 0.24 KB
-
✅⭐ Make $2500 in 15 minutes ✅ NEVER SEEN BEFO...
JavaScript | 45 sec ago | 0.24 KB
-
⭐⭐⭐ G2A Payment Exploit ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 57 sec ago | 0.24 KB
-
⭐✅ MAKE $2500 IN 15 MIN ✅ NEVER SEEN BEFORE ⭐...
JavaScript | 1 min ago | 0.24 KB
-
⭐ ✅ Free Products Method ✅ ✅ NEVER SEEN BEFOR...
JavaScript | 1 min ago | 0.24 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand