[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/sci/ - Science & Math

Search:


View post   

>> No.11665725 [DELETED]  [View]
File: 318 KB, 1053x1080, 1583784437571.png [View same] [iqdb] [saucenao] [google]
11665725

>>11665374
>>11665438
>>11665662
YO BIG DICK COMING THROUGH

#include <iostream>

#define NCARDS 52
#define MAXITERATIONS 200
namespace c{

struct card{
int value;
card* previousCard;
card* nextCard;
} deck[NCARDS];

void init(card* deck)
{for(int i=0;i<NCARDS-1;i++){deck[i].value=i+1;deck[i].nextCard=&deck[i+1];}
deck[NCARDS-1].value=NCARDS;deck[NCARDS-1].nextCard=&deck[0];
for(int i=1;i<NCARDS;i++){deck[i].previousCard=&deck[i-1];}
deck[0].previousCard=&deck[NCARDS-1];
}

void print(card* deck){card* temp=&deck[0];for(int i=0;i<NCARDS;i++){std::cout<<temp->value<<std::endl;temp=temp->nextCard;}}

void removeShiftAndSplice(card* deck,int a,int b,int c){
card* temp[2]; card* stemp[2];
stemp[0]=&deck[a];
temp[0]=deck[a].previousCard;temp[1]=stemp[0];

for(int i=0;i<b;i++){temp[1]=temp[1]->nextCard;} stemp[1]=temp[1];
temp[1]=stemp[1]->nextCard;

temp[0]->nextCard=temp[1]; temp[1]->previousCard=temp[0];

temp[0]=stemp[1];
for(int i=0;i<c;i++){temp[0]=temp[0]->nextCard;} temp[1]=temp[0]->nextCard;
temp[0]->nextCard=stemp[0];stemp[0]->previousCard=temp[0];
temp[1]->previousCard=stemp[1];stemp[1]->nextCard=temp[1];
}

}//end of namespace

int main()
{
init(c::deck);

for(int i=0;i<MAXITERATIONS;i++){
removeShiftAndSplice(c::deck,i%13,i%17+1,i%23+1);
};

print(c::deck);
}

>> No.10032921 [View]
File: 318 KB, 1053x1080, 1531915391660.png [View same] [iqdb] [saucenao] [google]
10032921

>>10028635
turtle = 0
cat + table = 170
table - cat = 130

cat + table - table + cat = 170 - 130
2cat = 40
cat = 20
table = 150

>> No.9916215 [View]
File: 318 KB, 1053x1080, 1531915391660.png [View same] [iqdb] [saucenao] [google]
9916215

>>9902538
Based and redpilled am I right my fellow magapedes ?

>> No.9834757 [View]
File: 318 KB, 1053x1080, 1529870182834.png [View same] [iqdb] [saucenao] [google]
9834757

>>9834743
>Yfw forcing particles reduces to simply increases the probability they will blink to a position along the forcing line of action
>Yfw using ur legs to move ur body laterally is entirely dependent on RNG with modifiers

Hmmm funny how the universe work leik dat almost like how discreet steps and probability calculations in place of continuity and certainty are the limitations of computer simulaytions!? Hehe crazy how we got a coinkie dink like that LOL...????

Navigation
View posts[+24][+48][+96]