|
-
Dec 8th, 2003, 07:05 PM
#1
Thread Starter
Addicted Member
tricky tricky...err..word prob
Let x = 0.123456789101112...997998999, where the digits are obtained by writing the integers1 through 999 in order. Find the 1983rd digit to the right of the decimal point.
- you've been privileged to read a post by Miz
-
Dec 9th, 2003, 01:03 AM
#2
transcendental analytic
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Dec 9th, 2003, 04:16 AM
#3
Code:
'VB6
sub FindIt()
dim text as string
dim i as long
text = "0."
for i = 1 to 999
text = text & str(i)
next i
msgbox mid$(text, 1985,1)
End Sub
I don't live here any more.
-
Dec 9th, 2003, 09:08 AM
#4
transcendental analytic
Code:
Main> last (take 1983 (foldr1 (++) (map show [1..999])))
'7'
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|