Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

/prog/ challenge XL edition

Name: Anonymous 2012-10-29 14:32

CHALLENGE: Implement the multifactorial function:

int multifact(int n, int x) {
  int prod = 1;
  while (x > 0) { prod *= x; x -= n; }
  return prod;
}


Make your code AS LONG AS POSSIBLE, adding in as much enterprisey bullshit as you can. Entries will be evaluated for length, enterprise quality, creativity and humor. The deadline is 2012-05-11, 00:00 UTC. Good luck!

Name: Anonymous 2012-10-29 14:59

How do you write dates?

1. dd-mm-yyyy
2. mm-dd-yyyy
3. yyyy-mm-dd (faggit)

Terrible!

Name: Anonymous 2012-10-29 15:00

int multifactorial ( int change, int product )
{
    int returnVariable;

    for ( returnVariable = 1 ; checkCondition(product) ; product = product - change )
    {
        returnVariable = returnVariable * product;
    }

    return returnVariable;
}

bool checkCondition ( int & refVar )
{
    if ( refVar > 0 )
    {
        return true;
    }
    else
    {
        return false;
    }
}


spacing is key

Name: Anonymous 2012-10-29 15:05

May has passed, faggot.

Name: Anonymous 2012-10-29 15:23

Integer doMultifactorial ( Integer change, Integer product, Function<Boolean><Reference<Integer>> checkCondition) throws IntegerException, IntegerFactoryException, SingletonException, IOControlException
{
    Integer returnVariable = IntegerFactory.generate(1);

    for (/* do nothing */ ; checkCondition(product) ; product = Integer.Subtract(product, change))
    {
        returnVariable = Integer.Multiply(returnVariable, product);
    }

    return returnVariable;
}


superior

Name: Anonymous 2012-10-29 15:24

>>5
Still too late.

Name: Anonymous 2012-10-29 16:05

>>2
2. is for pansy-ass dickshits with no sense of consistency

Name: Anonymous 2012-10-29 16:18

>>7
1. d-m-Y H:M:S
2. m-d-Y H:M:S

Both are middle-endian shit.

Name: Anonymous 2012-10-29 16:52

>>7-8
fuck off, euroqueer

Name: Anonymous 2012-10-29 16:53

>>8
A datetime is a date and a time stuck together, so there's nothing particularly middle-endian about D/M/Y H:M:S because both components are pretty much distinct.
Plus DMY HMS has a nice significance plot

Name: Anonymous 2012-10-29 21:17

/prog/ challenge DUBS edition

Name: Anonymous 2012-10-29 21:52

>>11
You've already won!

Name: Anonymous 2012-10-29 22:15

>>10
A 16-bit number is a high byte and a low byte stuck together...
Also, it's more like DMS HMS.

Name: Anonymous 2012-10-29 22:30

201210292230

Name: Anonymous 2012-10-29 22:41

>>14
master race.

Don't change these.
Name: Email:
Entire Thread Thread List