Re: Capture the flag - HP-12C programming contest Message #2 Posted by gene wright on 11 Feb 2011, 12:59 p.m., in response to message #1 by x34
1)
10 second idea. Destroys values in financial registers.
0 FV 1 N 1 i 1 PV PMT 1 + X=0?
If condition true then it was in BEG mode, otherwise END mode.
2)
1.022 ENTER 1 CHS DATE INT 1 - x=0
will be true if mode was M.DY and will not if D.MY
I make no claims that these are anywhere near optimal, but they work.
|