]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/project-euler/100/100.factor
project-euler: Rewrap, update links, add copyrights, tests
[factor.git] / extra / project-euler / 100 / 100.factor
index d6cad8e9012f0c6f88dd47a4509ee2ef951bf44a..9fd82cbf3dc0b8b94efbcb95ee9e72fec9c9f269 100644 (file)
@@ -3,20 +3,23 @@
 USING: kernel math math.functions project-euler.common ;
 IN: project-euler.100
 
-! https://projecteuler.net/index.php?section=problems&id=100
+! https://projecteuler.net/problem=100
 
-! DESCRIPTION ! -----------
+! DESCRIPTION
+! -----------
 
-! If a box contains twenty-one colored discs, composed of fifteen blue discs
-!  and six red discs, and two discs were taken at random, it can be seen that
-!  the probability of taking two blue discs, P(BB) = (15/21)*(14/20) = 1/2.
+! If a box contains twenty-one colored discs, composed of
+! fifteen blue discs and six red discs, and two discs were taken
+! at random, it can be seen that the probability of taking two
+! blue discs, P(BB) = (15/21)*(14/20) = 1/2.
 
-! The next such arrangement, for which there is exactly 50% chance of taking
-!  two blue discs at random, is a box containing eighty-five blue discs and
-!  thirty-five red discs.
+! The next such arrangement, for which there is exactly 50%
+! chance of taking two blue discs at random, is a box containing
+! eighty-five blue discs and thirty-five red discs.
 
-! By finding the first arrangement to contain over 10^12 = 1,000,000,000,000
-!  discs in total, determine the number of blue discs that the box would contain.
+! By finding the first arrangement to contain over 10^12 =
+! 1,000,000,000,000 discs in total, determine the number of blue
+! discs that the box would contain.
 
 
 ! SOLUTION