Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Challenge: fastest program wins

Name: Anonymous 2009-04-14 12:59

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: Anonymous 2009-04-14 17:44

from sys import argv
open(argv[2], 'w').write(bin(int(open(argv[1], 'r').read()) // 3))


The challenge is badly specified, uninteresting and useless. Bring back Practical /prog/ Challenges!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List