Journal joe_bruin's Journal: optimize this
optimize this for least number of characters.
main(r,c){for(r=-1,c=0;r<39;c++)printf(c<0?" ":c>r?c=r++-38,"\n":~r&c?" `":" #");}
here's a first rev, -4 bytes. note that it relies on argc being > 0.
main(c,r){for(r=-1;r<39;c++)printf(c<0?" ":c>r?c=r++-38,"\n":~r&c?" `":" #");}
this started here:
http://slashdot.org/comments.pl?sid=96878&cid=8290149
main(r,c){for(r=-1,c=0;r<39;c++)printf(c<0?" ":c>r?c=r++-38,"\n":~r&c?" `":" #");}
here's a first rev, -4 bytes. note that it relies on argc being > 0.
main(c,r){for(r=-1;r<39;c++)printf(c<0?" ":c>r?c=r++-38,"\n":~r&c?" `":" #");}
this started here:
http://slashdot.org/comments.pl?sid=96878&cid=8290149
optimize this More Login
optimize this
Slashdot Top Deals