Skip to content

Instantly share code, notes, and snippets.

@juliusgeo
Last active March 10, 2023 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juliusgeo/661cb84d04d906ca9f08b8769b85da5e to your computer and use it in GitHub Desktop.
Save juliusgeo/661cb84d04d906ca9f08b8769b85da5e to your computer and use it in GitHub Desktop.
IOCCC 1988 Underscore Pi Python Recreation
print(''.join(b:=open(__file__).readlines()[1:]).count("#")/len(b)/4)
#######
#################
#######--------########
######-------------#######
######-----------------######
#####------------------######
######-------------------######
#####--------------------######
#####---------!\---------######
######--------!$#\-------######
######-------!#$#$#\---######
######-------!#$#$##$#\#####
#######-----!$#$#$#$#$#\###
##########!$#$#$#$#$##\
######!$#$#$###
##!####
@juliusgeo
Copy link
Author

juliusgeo commented Mar 9, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment