------ art_51472_30684299.1157378088638
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
hi list,
my solution isn't short, and it isn't fast, only does base 10 (i didn't feel
up to it), and probably isn't very efficient.
but it _is_ a solution :-)
here is it:
------------------------------------
happynumbers.rb
------------------------------------
class Integer
def happy?(show_sumù±se)
string¥ç¡¬
¥ó
¡¼¥ç¥£¥ç¥å¥¢¥¥
¥í¥ã¥¢¥ó¥ç¡¬
¥·¥·¡Ö¡×¡«¥¤¡Ö ¡¬
¥©¥ß ¥§
¡¬
¥·¥·¥ç¥£¡Ö ¥© ¡Ö¥¥
¥·¥·¡Ö ¥ï¡Ö
¥·¥·¡Ö¥ï¡× ¥³¥¥¡Ö
¥ç¥½¥£¥¥
¥·¥·¡Ö¥ï¡× ¥³¥£¡Ö
¡¬
¥·¥·
¥Á¥á¥Ì¥è¥í¡¼¥ó
¥á¥Ì¥è¥í¡¼¥ó¥ç¡¬¥ç¡¬
¥Á¥á¥Ì¥è¥í¡¼¥ó¥ç¡¬¥ç¥½¥£¥¥
¥Á¥á¥Ì¥è¥í¡¼¥ó ¡«¥ï¥£¥£¥ï¥©¥¥¥ï¥¥¡¢¥Ã
¥ç¡¬
¥¢¥ç¥£¥¥
¥½¥£¥¥
¥© ¥Ã
¡Ö¥ï¥ï¡× ¡×¡Ö
¡Ö¥³¡Ö
¡Ö ¥ç ¡Ö
¡Ö ¥ç ¥£¥¥¡Ö
¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å¥å
¥ã ¥È¥ç
¥å¥å¥å¥å¥å¥å ¡¬¥ª¥¢¥¨¥¥¤¡¬¥¦¡¼¥«¥¯¥¨¥¤¥±¥±¥ç¥¢¥¢¥ª¥¥¦¥¥¯¡¼¥¯¥¯¥«¥¦¥¯¥å¥å