David Seruyange's Radio Weblog
Tidbits for developers and the interested...

David-ism
Watu
Vicariously
Photo Blogs
Form, Function
Write, Think
Web People
Coders
Feel Good


Subscribe to "David Seruyange's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

Home (all entries)  | Technie  | Prattle (personal stuff)  | Books  | Snippets  | WhiteBox


Wednesday, July 21, 2004
 

Fun Pics

Just a few pics to amuse you:

Menacing Fluffy.

Remember the Iraqi Information Minister?

Paris, then Tokyo. (These are big files).

Too much math.

Courtesy of some french guy - enjoy them all.

posted in [home], [snippets]


11:13:45 PM    comment []

Solutions

Solution to the billboard below (also my program as a *.zip):

So you visit the website.  The solution is that each of the numbers, added across, equal 49.  You must find the next set of numbers which add across to 49 within e.

Just a tidbit of my code:

  static void Main(string[] args)
  {
   // starts on the 99th
   for(int i=0;i<250;i++){
    if(Add(e.Substring(i,10))==49){
     Console.WriteLine(e.Substring(i,10));
    }
   }
   Console.ReadLine();
  }

  static int Add(string nums){
   int res = 0;
   char[] n = nums.ToCharArray();
   foreach(char c in n){
    int tmp = Convert.ToInt32(c.ToString());
    res += tmp;
   }
   return res;
  }

  static string e =
   "27182818284590452353602874713526624977572470936999595749669676277240766303535" +
   "475945713821785251664274274663919320030599218174135966290435729003342952605956" +
   "307381323286279434907632338298807531952510190115738341879307021540891499348841" +
   "675092447614606680822648001684774118537423454424371075390777449920695517027618" +
   "386062613313845830007520449338265602976067371132007093287091274437470472306969" +
   "772093101416928368190255151086574637721112523897844250569536967707854499699679" +
   "468644549059879316368892300987931277361782154249992295763514822082698951936680" +
   "331825288693984964651058209392398294887933203625094431173012381970684161403970" +
   "198376793206832823764648042953118023287825098194558153017567173613320698112509" +
   "961818815930416903515988885193458072738667385894228792284998920868058257492796" +
   "104841984443634632449684875602336248270419786232090021609902353043699418491463";

The answer there is:

You can find my solution here (again *.zip).

posted in [home], [snippets]


10:05:05 AM    comment []


Click here to visit the Radio UserLand website. © Copyright 2006 David Seruyange.
Last update: 5/23/2006; 8:25:43 PM.
July 2004
Sun Mon Tue Wed Thu Fri Sat
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Jun   Aug