Write a program in your language that
1.opens a file as arbitrary precision integer.
2.divides the number by 3.
3.stores the binary result in another file.
Name:
Anonymous2009-04-18 13:59
anyone that talks about problem domains is a faggot
What sort of fucking idiot regards "opens a file as arbitrary precision integer" to mean "read in a file, interpret it as ASCII and take that string to be a base 10 number"? Obviously, it means take the actual file data to be a number.
Name:
Anonymous2009-04-20 18:37
>>76
Interesting method of dividing by three, but it makes little difference as the bottleneck is disk access.
Name:
Anonymous2009-04-20 18:44
>>86 Obviously, it means take the actual file data to be a number.
`Obvious' is probably not the word you're looking for here considering every single program in this thread does it the other way.
Given >>1's definition, how would you interpret a binary file as an arbitrary-precision integer?
Name:
Anonymous2009-04-20 18:46
>>88 No, every single program in this thread does not.
The two programs in this thread which actually do it properly and efficiently interpret >>1 to mean the file is read in as a binary number with the most significant bit at the start of the file and the least significant bit at the end.
Name:
Anonymous2009-04-20 18:49
>>89
I think you need to re-examine your assumptions.