Input N:0:If N and not(fPart(N:2=sum(seq(not(fPart(abs(N)/I)),I,1,abs(N:Ans
(note that this is not the speediest it could be, but speed is not factored in your score, only size)HAPPY
Sample input 2:HAPPY
Sample input 3:SAD
orUNHAPPY
Rank | User | Size | Date | Code |
1 | willrandship | 94 | 7/19/2014 11:16:56 PM | Spoiler For Spoiler: |
2 | Juju | 148 | 7/15/2014 4:22:50 PM | Spoiler For Spoiler: |
Rank | User | Size | Date | Code |
1 | Runer112 | 32 | 7/15/2014 5:17:50 PM | Spoiler For Spoiler: |
Rank | User | Size | Date | Code |
1 | Runer112 | 30 | 7/15/2014 5:17:50 PM | Spoiler For Spoiler: |
Rank | User | Size | Date | Code |
1 | calc84maniac | 46 | 7/16/2014 5:03:49 PM | Spoiler For Spoiler: |
2 | Runer112 | 46 | 7/16/2014 5:09:28 PM | Spoiler For Spoiler: |
3 | Hayleia | 71 | 7/16/2014 2:18:36 AM | Spoiler For Spoiler: |
Rank | User | Size | Date | Code |
1 | Runer112 | 58 | 7/20/2014 9:32:08 PM | Spoiler For Spoiler: |
2 | calc84maniac | 60 | 7/16/2014 12:12:44 PM | Spoiler For Spoiler: |
Rank | User | Size | Date | Code |
1 | JWinslow23 | 182 | 7/19/2014 7:26:37 PM | Spoiler For Spoiler: |
Rank | Lang | User | Size | Date |
1 | CJam | Runer112 | 30 | 7/15/2014 5:17:50 PM |
2 | Golfscript | Runer112 | 32 | 7/15/2014 5:17:50 PM |
3 | TI-83+ BASIC | calc84maniac | 46 | 7/16/2014 5:03:49 PM |
4 | TI-83+ z80 | Runer112 | 58 | 7/20/2014 9:32:08 PM |
5 | Python | willrandship | 94 | 7/19/2014 11:16:56 PM |
6 | Batch | JWinslow23 | 182 | 7/19/2014 7:26:37 PM |
Do you/others think it's better for entries to be messaged to you privately, rather than just posted here in a spoiler?OP does say to PM entries to him, so I'd assume so. I think it makes sense to PM them anyway. We could share the code in the topic after the deadline, maybe
I added it in.
I also added something of my own...let's see Runer112 try to golf this TI-BASIC entry... >:D
If he asks, though, I'll show it in a spoiler. ;)
For TI-BASIC, does it matter if Done is displayed in one case and not the other? If not, then I have a 47-byte program. If so, then it's 48.It depends which OS I think, because on OS 2.53MP and higher, it's impossible to hide the "Done" message. Even if you end your program with Output(1,1," it will still show up regardless.
ASMists said they prefer "unhappy" because it saves space and JWinslow23 allowed "unhappy" as a valid answer for "sad".
Princetonlion.tibd, either of SAD or UNHAPPY are allowed. Whatever is more golfed.
Sorry I didn't really read all, but are people compared by language or in a single batch (yeah I know this sounds stupid) ?Both. There are winners for each language AND a winner out of every other winner. The overall winner decides the next challenge.
Princetonlion.tibd, literally EVERY computer AND calculator language is allowed.*.*
But if only 1 person enters in a specific language, does he win by default or is he matched against people who used other languages?I hope someone else does 68k BASIC... So I don't win be default
It looks like we've reached a consensus that, with the [ENDED] tag to clear things up, on-topic necroposting is allowed for after-the-fact optimizations or programming/golf tips. Therefore:Well, I didn't have a MATHPRINT calculator (and others here don't either...take Zeda/Xeda, for example), and I had to be able to test the solutions myself. If anybody makes a solution that requires any TI-84+ OS 2.53 or over, we should make that a separate category. In my opinion.
The only optimization I see in the top two TI-BASIC solutions is that on a MathPrint calculator, cumSum(binomcdf(14,0 can be randIntNoRep(1,14, saving two bytes at the cost of speed, since order does not matter. Either calc84maniac or Runer112 could have won the contest outright at 44 bytes if they had done this. Both of them noticed that If A≠1 could be optimized to If log(A, which is small but hard to notice.
I don't think that it should be a separate category, as else for languages like php you'd have to make a separate category for every module you use because it might be disabled in the php.ini ....OK, then I guess MATHPRINT-only commands are disallowed.