# Search Results

Results tagged with Search options user 10740
62 results

This challenge is intended to be solved by using, manipulating, accepting as input, or outputting numeric values.

TI-Basic, 28 bytes Input N For(I,1,N randIntNoRep(1,N->L1 SortA(L1 Disp L1 End
answered Mar 12 '15 by Timtech
Game Maker Language, 44 Replace 12345 with whatever number or variable you want: n=12345while(n>0){r=r*10+(n mod 10)n div 10} If you want to prompt for user input, use this 56 character long code … instead: n=get_string('','')while(n>0){r=r*10+(n mod 10)n div 10} In both pieces of code, the reverse number is stored in r …
answered Nov 30 '13 by Timtech
TI-Basic, 18 bytes If fPart(.1Ans Return Ans.1 prgmA 10Ans
answered Feb 22 '17 by Timtech
GameMaker Language, 70 bytes a=argument0;If a+a=a*2return a*2-areturn a*a/a
answered Aug 31 '16 by Timtech
bracket sum(Ans{1,1,.5 Multiplies previous list by {1 1 .5} and sums it .1I Previous number is 0 1 2 or 2.5, so multiply by .1 and then by income …
answered May 14 '16 by Timtech
Ti-Basic 84, 26 characters :Input A:Disp fpart(A/2)*2 Returns 1 for odd numbers and 0 for even numbers. Takes nested arrays - 1D, 2D, 3D, 4D, 5D, etc. Old version, 50 characters: :Input A:If fp …
answered Dec 11 '13 by Timtech
Golf-Basic 84, 17 iAdfpart(A/2)*2 Returns 0s for even numbers and 1s for odd numbers. Accepts nested arrays - 1D, 2D, 3D, 4D, etc. Old version, 30 characters: iA@fpart(A/2)*2tODD"#tEVEN" …
answered Dec 10 '13 by Timtech
]+k[c-2]}while(e<c){e+=1if k[e]==b r=1}return r It returns true or false; call with f(any number you want) Edit #1 Corrected invalid operators % and /= with mod and div. …
answered Nov 30 '13 by Timtech
TI-BASIC, 58 54 Input N:0:While N>0:Ans+E3fpart(N,10:N/10→N:End:Ans Usage prgmREVERSE ?598028 820895 Done
answered Apr 8 '14 by Timtech
TI-Basic, 37 bytes Works on any TI-83/84 calculator Input L1 gets input into an array L1(4)²/L1(3 calculate the fifth number in a geometric series If not(sum … (ΔList(ΔList(L1 if ΔList(ΔList(L1)) yields an array of all zeroes L1(4)2-L1(3 calculate the fifth number in an arithmetic series Ans is implicitly returned …
answered Aug 31 '16 by Timtech
TI-Basic, 34 bytes sub("ABCDEFGHIJKLMNOPQRSTUVWXYZ",Ans,1 This is as short as it gets...
answered Nov 28 '17 by Timtech
4answers
number would be (for example, 0 = single, 1 = married, 2 = head of household). Just don't be ridiculous - Single digit numbers only. Also, functionality for decimal inputs (i.e. including cents) is … undefined, so you only have to worry about integer inputs. For your output, you may either output a decimal value or round it to the nearest whole number. Test Cases Although the second number's range can …
asked May 14 '16 by Timtech
TI-Basic, 26 bytes Unfortunately, very uninteresting approach. I could not find anything shorter. The list is 1-indexed. Input :{1,1,2,-1,1,-2:augment(Ans,-Ans:Ans(X
answered Nov 9 '16 by Timtech
Golf-Basic 84, 58 characters Executed from a TI-84 calculator iCpS,V,U,A,T@C=1dU+AT@C=2dUT+.5AT²@C=1d"V="@C=2d"S=" Sample Run ?1 ?S=UNKNOWN ?V=UNKNOWN ?U=5 ?A=4 ?T=2 V= 13
answered Jan 1 '14 by Timtech
GTB, 43 C,S,V,U,A,T@C=1\$~"V="~U+AT#~"S="~UT+.5AT²& Sample Runs Solve for V ?1 ?UNKNOWN ?UNKNOWN ?5 ?4 ?2 V= 13 Solve for S ?2 ?UNKNOWN ?UNKNOWN ?5 ?4 ?2 S= 18
answered Jan 3 '14 by Timtech

15 30 50 per page