![]() |
|
|
#1860 | |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
Quote:
Wonder how fast we could finish off the list? You know most of them by the sounds of it. I'm still a little stumped on how to fix my rle script but I know ( and ) shouldn't be used to code something with. By the looks of it and I need ways to check for control characters,spaces and numbers that appear out of nowhere in the strings but aren't part of the count of characters) maybe a Vec, and a scan of type will do but maybe not. I'm so stupid maybe tab in between would help lol. Last fiddled with by science_man_88 on 2010-12-01 at 18:03 |
|
|
|
|
|
|
#1861 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
if something can be done to files in the file system root:
http://rosettacode.org/wiki/File_size the hard part to this one that must have landed it in the too hard category must be how to read the original given file size to compare something with. |
|
|
|
|
|
#1862 | |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
http://rosettacode.org/wiki/Pascal's_triangle/Puzzle
Doesn't sound hard in one sense. solve: Quote:
Last fiddled with by science_man_88 on 2010-12-01 at 18:39 |
|
|
|
|
|
|
#1863 |
|
"Forget I exist"
Jul 2009
Dumbassville
838410 Posts |
Code:
for(x=0,18,for(y=0,18,if(x+y=18,for(z=1,103,if((x+2*y+z)==121,print(x","y","z);break(3)))))) Last fiddled with by science_man_88 on 2010-12-01 at 18:47 |
|
|
|
|
|
#1864 |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
oops forgot y=x+z but that doesn't work I've messed up
|
|
|
|
|
|
#1865 |
|
"Forget I exist"
Jul 2009
Dumbassville
100000110000002 Posts |
I've determined y=13 by:
[ 6y+x+z+4a[2]+4a[4]= 7y +4a[2]+4a[4]] [3y+x+37 ][3y+z+23] [40=x+y+22][ 2y+15][ y+z+8 ] [ x+11 ][y+11 ][y+4 ][z+4 ] [ X][11][ Y][ 4][ Z] if a = [] bottom row for this sized triangle we see in this case 151-(44+16) = 91 ; 91/7 =13 y=13 40-13-22 =x = 5; 13-5=z=8; however I now know how to solve it in this case. |
|
|
|
|
|
#1866 |
|
"Forget I exist"
Jul 2009
Dumbassville
26·131 Posts |
Code:
Pascals_triangle_puzzle(topvalue=151,leftsidevalue=40,bottomvalue1=11,bottomvalue2=4) = {
y=(topvalue-(4*(bottomvalue1+bottomvalue2)))/7;
x=leftsidevalue-(y+2*bottomvalue1);
z=y-x;
print(x","y","z); }
Last fiddled with by science_man_88 on 2010-12-01 at 20:48 |
|
|
|
|
|
#1867 |
|
May 2010
Prime hunting commission.
110100100002 Posts |
I figured out how to falsify factoring a large number (somewhat);
Code:
[866876601688257388041953428681474799611455578456879011971315052706094788178469895182220494116473202297231530219967803566778120639 528365543601153323389150907773258262552994601295053933845142213535320241754514748728875053183803012869853716977772216817067444377] [361704130063529693429159107448019863732305480622816041454555619831169499041663864963068219490947259594777674878198147873998732309 326729818580681541350657067987755793696856969106820654842683490163988042729198926945304899046855890448333533668661395285070725039] Code:
866876601688257388041953428681474799611455578456879011971315052706094788178469895182220494116473202297231530219967803566778120639528365543601153323389150907773258262552994601295053933845142213535320241754514748728875053183803012869853716977772216817067444377 * 361704130063529693429159107448019863732305480622816041454555619831169499041663864963068219490947259594777674878198147873998732309326729818580681541350657067987755793696856969106820654842683490163988042729198926945304899046855890448333533668661395285070725039 Last fiddled with by 3.14159 on 2010-12-01 at 23:24 |
|
|
|
|
|
#1868 | |
|
"Forget I exist"
Jul 2009
Dumbassville
26×131 Posts |
Quote:
|
|
|
|
|
|
|
#1869 |
|
May 2010
Prime hunting commission.
24×3×5×7 Posts |
|
|
|
|
|
|
#1870 | |
|
Aug 2006
3·1,993 Posts |
Quote:
if(type(string) == "t_STR", print("It's a string.")) t_REAL and t_COMPLEX. |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Why do I sometimes see all the <> formatting commands when I quote or edit? | cheesehead | Forum Feedback | 3 | 2013-05-25 12:56 |
| Passing commands to PARI on Windows | James Heinrich | Software | 2 | 2012-05-13 19:19 |
| Ubiquity commands | Mini-Geek | Aliquot Sequences | 1 | 2009-09-22 19:33 |
| 64-bit Pari? | CRGreathouse | Software | 2 | 2009-03-13 04:22 |
| Are these commands correct? | jasong | Linux | 2 | 2007-10-18 23:40 |