0 Members and 1 Guest are viewing this topic.
Code: (List Compression) [Select]{1020902,5020507,1070907→L1For(A,1,dim(AnsLine(iPart(E2fPart(L1(A)/E8)),-iPart(E2fPart(L1(A)/E6)),iPart(E2fPart(L1(A)/E4)),-iPart(E2fPart(L1(A)/E2EndNote:Each "E" in that code is the scientific notation E.Code: (String Compression) [Select]"010209020502050701070907→Str1For(A,1,length(Str1)-7,8Line(expr(sub(Str1,A,2)),-expr(sub(Str1,A+2,2)),expr(sub(Str1,A+4,2)),-expr(sub(Str1,A+6,2EndThere might be optimizations that can be made, I just threw those together real fast to demonstrate the methods.Note:The list method is 108 bytes while the sting is 114 bytes. BUT, the string is 35 bytes while the sting is 39 bytes.
{1020902,5020507,1070907→L1For(A,1,dim(AnsLine(iPart(E2fPart(L1(A)/E8)),-iPart(E2fPart(L1(A)/E6)),iPart(E2fPart(L1(A)/E4)),-iPart(E2fPart(L1(A)/E2End
"010209020502050701070907→Str1For(A,1,length(Str1)-7,8Line(expr(sub(Str1,A,2)),-expr(sub(Str1,A+2,2)),expr(sub(Str1,A+4,2)),-expr(sub(Str1,A+6,2End
Quote from: meishe91 on September 14, 2010, 07:21:51 pmCode: (List Compression) [Select]{1020902,5020507,1070907→L1For(A,1,dim(AnsLine(iPart(E2fPart(L1(A)/E8)),-iPart(E2fPart(L1(A)/E6)),iPart(E2fPart(L1(A)/E4)),-iPart(E2fPart(L1(A)/E2EndNote:Each "E" in that code is the scientific notation E.Code: (String Compression) [Select]"010209020502050701070907→Str1For(A,1,length(Str1)-7,8Line(expr(sub(Str1,A,2)),-expr(sub(Str1,A+2,2)),expr(sub(Str1,A+4,2)),-expr(sub(Str1,A+6,2EndThere might be optimizations that can be made, I just threw those together real fast to demonstrate the methods.Note:The list method is 108 bytes while the sting is 114 bytes. BUT, the string is 35 bytes while the sting is 39 bytes.Thanks, that makes sense to me (I think).Also, I think you lost the game, Builderboy. (and if you didn't, you did now. )
Haha yeah didnt you hear? If you use Lists, they are by nature slower than themselves, which means they are also faster than themselves, which means you can get infinitely fast or slow speed at the same time * Builderboy hits self with a pointy thing *