Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • \$\begingroup\$ Wow, +1! And I hoped my roman numerals solution will be the best... :( ;-) \$\endgroup\$ Commented Jan 14, 2014 at 15:35
  • \$\begingroup\$ The variants below can be made shorter: cat(a<-T+T,T-T,T/T,a^a,sep="") (30 chars), paste0(aT+T,T-T,T/T,a^a) (26 chars) \$\endgroup\$ Commented Jan 15, 2014 at 10:16
  • \$\begingroup\$ @Tomas, the function paste0 is not allowed, as it contains the symbol 0. Your solution makes 30 characters if using cat. \$\endgroup\$ Commented Jan 21, 2014 at 10:47
  • \$\begingroup\$ create file 2014 in current directory and write list.files() - 12 characters \$\endgroup\$ Commented Jan 31, 2014 at 17:00
  • \$\begingroup\$ @Zbynek, I expect your solution not to be valid in the general scope of codegolf rules. \$\endgroup\$ Commented Feb 1, 2014 at 9:19