Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
B'In mathematics, the Pythagorean theorem -- is a relation in Euclidean geometry among the three sides of a right-angled triangle. In terms of areas, it states: x7fIn any right-angled triangle, the area of the square whose side is the hypotenuse (the side opposite the right angle) is equal to the sum of the areas of the squares whose sides are the two legs (the two sides that meet at a right angle). The theorem can be written as an equation relating the lengths of the sides a, b and c, often called the Pythagorean equation: where c represents the length of the hypotenuse, and a and b represent the lengths of the other two sides. Given n, your task is to count how many right-angled triangles with side-lengths a, b and c that satisfied an inequality 1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89a xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89b xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89c xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n. The only line contains one integer n (1 xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89n xe2 x80 x89 xe2 x89 xa4 xe2 x80 x89104) as we mentioned above. Print a single integer -- the answer to the problem.'... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
3706093 |
Frommi |
A |
May 12, 2013, 1:04 p.m. |
OK |
Delphi |
TESTS |
32 |
281 |
102400 |
|
1300 |
3706488 |
bulkasmakom |
A |
May 12, 2013, 1:09 p.m. |
OK |
Delphi |
TESTS |
32 |
390 |
102400 |
|
1300 |
3710449 |
ruban1 |
A |
May 12, 2013, 2:29 p.m. |
OK |
Delphi |
TESTS |
32 |
812 |
110182400 |
|
1300 |
3706170 |
ruban |
A |
May 12, 2013, 1:05 p.m. |
OK |
Delphi |
TESTS |
32 |
859 |
110182400 |
|
1300 |
3706270 |
egor-belikov |
A |
May 12, 2013, 1:07 p.m. |
OK |
Delphi |
TESTS |
32 |
1281 |
0 |
|
1300 |
3709328 |
Casio |
A |
May 12, 2013, 2:04 p.m. |
OK |
Delphi |
TESTS |
32 |
1281 |
0 |
|
1300 |
3712117 |
vshirochenko |
A |
May 12, 2013, 2:59 p.m. |
OK |
Delphi |
TESTS |
32 |
1296 |
102400 |
|
1300 |
3707673 |
DeSerg |
A |
May 12, 2013, 1:28 p.m. |
OK |
Delphi |
TESTS |
32 |
1312 |
102400 |
|
1300 |
3706503 |
Kate1 |
A |
May 12, 2013, 1:09 p.m. |
OK |
Delphi |
TESTS |
32 |
1312 |
102400 |
|
1300 |
3708683 |
pufff |
A |
May 12, 2013, 1:50 p.m. |
OK |
Delphi |
TESTS |
32 |
1859 |
102400 |
|
1300 |
3708716 |
mr.deidara |
A |
May 12, 2013, 1:50 p.m. |
OK |
FPC |
TESTS |
32 |
15 |
0 |
|
1300 |
3707522 |
SJ_702D5 |
A |
May 12, 2013, 1:25 p.m. |
OK |
FPC |
TESTS |
32 |
62 |
0 |
|
1300 |
3707213 |
ECHO960 |
A |
May 12, 2013, 1:19 p.m. |
OK |
FPC |
TESTS |
32 |
62 |
0 |
|
1300 |
3706765 |
minhhoang97 |
A |
May 12, 2013, 1:12 p.m. |
OK |
FPC |
TESTS |
32 |
921 |
200396800 |
|
1300 |
3707994 |
zhzm |
A |
May 12, 2013, 1:35 p.m. |
OK |
FPC |
TESTS |
32 |
1000 |
0 |
|
1300 |
3710460 |
woot |
A |
May 12, 2013, 2:29 p.m. |
OK |
FPC |
TESTS |
32 |
1015 |
0 |
|
1300 |
3708653 |
ZeRoGerc |
A |
May 12, 2013, 1:49 p.m. |
OK |
FPC |
TESTS |
32 |
1031 |
100249600 |
|
1300 |
3706657 |
Manul |
A |
May 12, 2013, 1:11 p.m. |
OK |
FPC |
TESTS |
32 |
1281 |
0 |
|
1300 |
3706479 |
Fedosik |
A |
May 12, 2013, 1:09 p.m. |
OK |
FPC |
TESTS |
32 |
1281 |
0 |
|
1300 |
3710045 |
chipchip3412 |
A |
May 12, 2013, 2:20 p.m. |
OK |
FPC |
TESTS |
32 |
1296 |
0 |
|
1300 |
3706652 |
Qulinxao |
A |
May 12, 2013, 1:11 p.m. |
OK |
GNU C |
TESTS |
32 |
78 |
0 |
|
1300 |
3709741 |
zybest |
A |
May 12, 2013, 2:13 p.m. |
OK |
GNU C |
TESTS |
32 |
1015 |
0 |
|
1300 |
3706413 |
s864372002 |
A |
May 12, 2013, 1:09 p.m. |
OK |
GNU C |
TESTS |
32 |
1015 |
0 |
|
1300 |
3709954 |
hellgeek |
A |
May 12, 2013, 2:18 p.m. |
OK |
GNU C |
TESTS |
32 |
1281 |
0 |
|
1300 |
3711470 |
handorff |
A |
May 12, 2013, 2:49 p.m. |
OK |
GNU C |
TESTS |
32 |
1296 |
0 |
|
1300 |
3709626 |
picaso |
A |
May 12, 2013, 2:11 p.m. |
OK |
GNU C |
TESTS |
32 |
1296 |
0 |
|
1300 |
3710077 |
HARSH94 |
A |
May 12, 2013, 2:21 p.m. |
OK |
GNU C |
TESTS |
32 |
1312 |
0 |
|
1300 |
3707410 |
nnhamane |
A |
May 12, 2013, 1:23 p.m. |
OK |
GNU C |
TESTS |
32 |
1312 |
0 |
|
1300 |
3711344 |
UnkelTao |
A |
May 12, 2013, 2:47 p.m. |
OK |
GNU C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3711200 |
jayantjpr |
A |
May 12, 2013, 2:45 p.m. |
OK |
GNU C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3709756 |
orzwjmzbmr |
A |
May 12, 2013, 2:14 p.m. |
OK |
GNU C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3709309 |
wellziy |
A |
May 12, 2013, 2:04 p.m. |
OK |
GNU C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3709139 |
evlinkov |
A |
May 12, 2013, 2 p.m. |
OK |
GNU C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3709118 |
prakash1529 |
A |
May 12, 2013, 1:59 p.m. |
OK |
GNU C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3708748 |
qianlv |
A |
May 12, 2013, 1:51 p.m. |
OK |
GNU C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3708282 |
wao.uchiha |
A |
May 12, 2013, 1:41 p.m. |
OK |
GNU C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3708116 |
unlimited700 |
A |
May 12, 2013, 1:37 p.m. |
OK |
GNU C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3707968 |
fudq |
A |
May 12, 2013, 1:34 p.m. |
OK |
GNU C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3709758 |
ignition |
A |
May 12, 2013, 2:14 p.m. |
OK |
GNU C++0x |
TESTS |
32 |
390 |
0 |
|
1300 |
3706255 |
isti757 |
A |
May 12, 2013, 1:07 p.m. |
OK |
GNU C++0x |
TESTS |
32 |
390 |
12492800 |
|
1300 |
3707452 |
tomtomlv |
A |
May 12, 2013, 1:24 p.m. |
OK |
GNU C++0x |
TESTS |
32 |
656 |
0 |
|
1300 |
3707371 |
ehsanoo |
A |
May 12, 2013, 1:22 p.m. |
OK |
GNU C++0x |
TESTS |
32 |
1000 |
0 |
|
1300 |
3706112 |
uint16_t |
A |
May 12, 2013, 1:05 p.m. |
OK |
GNU C++0x |
TESTS |
32 |
1014 |
0 |
|
1300 |
3706472 |
E_Fantacy |
A |
May 12, 2013, 1:09 p.m. |
OK |
GNU C++0x |
TESTS |
32 |
1281 |
0 |
|
1300 |
3707061 |
tatsy |
A |
May 12, 2013, 1:17 p.m. |
OK |
GNU C++0x |
TESTS |
32 |
1281 |
0 |
|
1300 |
3706553 |
Baka |
A |
May 12, 2013, 1:10 p.m. |
OK |
GNU C++0x |
TESTS |
32 |
1281 |
0 |
|
1300 |
3708564 |
Reggies |
A |
May 12, 2013, 1:47 p.m. |
OK |
GNU C++0x |
TESTS |
32 |
1296 |
0 |
|
1300 |
3706497 |
M_M |
A |
May 12, 2013, 1:09 p.m. |
OK |
GNU C++0x |
TESTS |
32 |
1296 |
0 |
|
1300 |
3711285 |
dastapov |
A |
May 12, 2013, 2:46 p.m. |
OK |
Haskell |
TESTS |
32 |
15 |
0 |
|
1300 |
3707494 |
sessoh |
A |
May 12, 2013, 1:25 p.m. |
OK |
Java 6 |
TESTS |
32 |
656 |
0 |
|
1300 |
3707912 |
tryagainlater |
A |
May 12, 2013, 1:33 p.m. |
OK |
Java 6 |
TESTS |
32 |
906 |
102400 |
|
1300 |
3706183 |
Darko |
A |
May 12, 2013, 1:05 p.m. |
OK |
Java 6 |
TESTS |
32 |
984 |
102400 |
|
1300 |
3706113 |
twds |
A |
May 12, 2013, 1:05 p.m. |
OK |
Java 6 |
TESTS |
32 |
984 |
2355200 |
|
1300 |
3706851 |
vladislav.perelman |
A |
May 12, 2013, 1:14 p.m. |
OK |
Java 6 |
TESTS |
32 |
1029 |
102400 |
|
1300 |
3708571 |
Desert |
A |
May 12, 2013, 1:47 p.m. |
OK |
Java 6 |
TESTS |
32 |
1171 |
100352000 |
|
1300 |
3706852 |
Hangibhom |
A |
May 12, 2013, 1:14 p.m. |
OK |
Java 6 |
TESTS |
32 |
1640 |
0 |
|
1300 |
3706759 |
klone |
A |
May 12, 2013, 1:12 p.m. |
OK |
Java 6 |
TESTS |
32 |
1875 |
0 |
|
1300 |
3710021 |
bohuss |
A |
May 12, 2013, 2:20 p.m. |
OK |
Java 6 |
TESTS |
32 |
2062 |
0 |
|
1300 |
3706726 |
monyone |
A |
May 12, 2013, 1:12 p.m. |
OK |
Java 6 |
TESTS |
32 |
2093 |
0 |
|
1300 |
3707373 |
rantd |
A |
May 12, 2013, 1:22 p.m. |
OK |
Java 7 |
TESTS |
32 |
78 |
0 |
|
1300 |
3706444 |
xenoslash |
A |
May 12, 2013, 1:09 p.m. |
OK |
Java 7 |
TESTS |
32 |
968 |
0 |
|
1300 |
3706425 |
vineet.paliwal |
A |
May 12, 2013, 1:09 p.m. |
OK |
Java 7 |
TESTS |
32 |
1046 |
0 |
|
1300 |
3707138 |
alphank |
A |
May 12, 2013, 1:18 p.m. |
OK |
Java 7 |
TESTS |
32 |
1218 |
0 |
|
1300 |
3706614 |
ghewanzin |
A |
May 12, 2013, 1:11 p.m. |
OK |
Java 7 |
TESTS |
32 |
1234 |
0 |
|
1300 |
3707347 |
TUITUF_Bahrom |
A |
May 12, 2013, 1:22 p.m. |
OK |
Java 7 |
TESTS |
32 |
1263 |
0 |
|
1300 |
3706243 |
nyama |
A |
May 12, 2013, 1:06 p.m. |
OK |
Java 7 |
TESTS |
32 |
1279 |
0 |
|
1300 |
3710966 |
jopaa |
A |
May 12, 2013, 2:40 p.m. |
OK |
Java 7 |
TESTS |
32 |
1343 |
102400 |
|
1300 |
3708545 |
sdu.yh0104 |
A |
May 12, 2013, 1:47 p.m. |
OK |
Java 7 |
TESTS |
32 |
1359 |
0 |
|
1300 |
3706681 |
shimomire |
A |
May 12, 2013, 1:11 p.m. |
OK |
Java 7 |
TESTS |
32 |
1437 |
102400 |
|
1300 |
3709989 |
IdleMan |
A |
May 12, 2013, 2:19 p.m. |
OK |
Mono C# |
TESTS |
32 |
890 |
204800 |
|
1300 |
3710436 |
dwoolley3 |
A |
May 12, 2013, 2:29 p.m. |
OK |
Mono C# |
TESTS |
32 |
1125 |
204800 |
|
1300 |
3708043 |
Kety93 |
A |
May 12, 2013, 1:36 p.m. |
OK |
Mono C# |
TESTS |
32 |
1125 |
204800 |
|
1300 |
3707092 |
supachai_pay |
A |
May 12, 2013, 1:17 p.m. |
OK |
Mono C# |
TESTS |
32 |
2781 |
307200 |
|
1300 |
3707472 |
Guliash |
A |
May 12, 2013, 1:24 p.m. |
OK |
MS C# |
TESTS |
32 |
1015 |
3993600 |
|
1300 |
3709572 |
QuantumKnight |
A |
May 12, 2013, 2:09 p.m. |
OK |
MS C# |
TESTS |
32 |
1093 |
204800 |
|
1300 |
3707325 |
ManojMahadik |
A |
May 12, 2013, 1:22 p.m. |
OK |
MS C# |
TESTS |
32 |
1125 |
102400 |
|
1300 |
3708387 |
Litun |
A |
May 12, 2013, 1:43 p.m. |
OK |
MS C# |
TESTS |
32 |
2875 |
204800 |
|
1300 |
3709190 |
xuyecan |
A |
May 12, 2013, 2:01 p.m. |
OK |
MS C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3710446 |
zhouyiself |
A |
May 12, 2013, 2:29 p.m. |
OK |
MS C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3711697 |
AnitaTerken |
A |
May 12, 2013, 2:53 p.m. |
OK |
MS C++ |
TESTS |
32 |
15 |
0 |
|
1300 |
3706531 |
vshantarin |
A |
May 12, 2013, 1:10 p.m. |
OK |
MS C++ |
TESTS |
32 |
109 |
0 |
|
1300 |
3706177 |
Heart_Blue |
A |
May 12, 2013, 1:05 p.m. |
OK |
MS C++ |
TESTS |
32 |
328 |
0 |
|
1300 |
3708651 |
JonsonBen |
A |
May 12, 2013, 1:49 p.m. |
OK |
MS C++ |
TESTS |
32 |
343 |
0 |
|
1300 |
3707525 |
19891101 |
A |
May 12, 2013, 1:25 p.m. |
OK |
MS C++ |
TESTS |
32 |
515 |
0 |
|
1300 |
3710555 |
Mob-X |
A |
May 12, 2013, 2:31 p.m. |
OK |
MS C++ |
TESTS |
32 |
671 |
0 |
|
1300 |
3706486 |
yejinru |
A |
May 12, 2013, 1:09 p.m. |
OK |
MS C++ |
TESTS |
32 |
734 |
200396800 |
|
1300 |
3706876 |
netman |
A |
May 12, 2013, 1:14 p.m. |
OK |
MS C++ |
TESTS |
32 |
765 |
111308800 |
|
1300 |
3709101 |
can |
A |
May 12, 2013, 1:59 p.m. |
OK |
Python 2 |
TESTS |
32 |
78 |
5427200 |
|
1300 |
3708669 |
dpforest |
A |
May 12, 2013, 1:49 p.m. |
OK |
Python 2 |
TESTS |
32 |
78 |
5427200 |
|
1300 |
3707408 |
atupal |
A |
May 12, 2013, 1:23 p.m. |
OK |
Python 2 |
TESTS |
32 |
93 |
5324800 |
|
1300 |
remove filters
Back to search problems