skip to main
|
skip to sidebar
Saturday, May 22, 2010
SPOJ - Rectangles Counting
Recently solved problem #3890 -
MRECTCNT
.
If you want to solve the problem yourself - stop reading now.
Solution
Count the number of pairs
(a,b), a ≤ b
and
a + b - GCD(a,b) = squares
.
Note:
Monkey counting is fast enough
.
My SPOJ account
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
►
2011
(8)
►
July
(1)
►
May
(1)
►
April
(2)
►
March
(4)
▼
2010
(30)
►
December
(1)
►
October
(1)
►
September
(2)
►
August
(2)
►
July
(4)
►
June
(3)
▼
May
(11)
SPOJ - Flower Growing
From Strings to Ekpyrosis
SPOJ - Rectangles Counting
Champions League Finals 2010 & Missing World Cup S...
Exploring The World
Great People In History I - Julius Caesar
David Cameron - New British PM
SPOJ - Brackets Parade
Back to the future
Top 10 Beautiful Physics Experiments
ECOO 2010 Concludes
►
April
(6)
Categories
Futbol
(8)
Physics
(7)
Life
(6)
Miscellaneous
(6)
Programming
(5)
SPOJ
(5)
Philosophy
(3)
Astronomy
(2)
CCC
(2)
Film
(2)
Great People In History
(2)
Math
(2)
Politics
(2)
Environment
(1)
Geography
(1)
History
(1)
No comments:
Post a Comment