/prog/ challenge XL edition
1
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!
2
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!
3
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
4
Name:
Anonymous
2012-10-29 15:05
May has passed, faggot.
5
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
6
Name:
Anonymous
2012-10-29 15:24
7
Name:
Anonymous
2012-10-29 16:05
>>2
2. is for pansy-ass dickshits with no sense of
consistency
8
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.
9
Name:
Anonymous
2012-10-29 16:52
>>7-8
fuck off, euroqueer
10
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
D M
Y H M
S has a nice significance plot
11
Name:
Anonymous
2012-10-29 21:17
/prog/ challenge DUBS edition
12
Name:
Anonymous
2012-10-29 21:52
13
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 D
MS HMS .
14
Name:
Anonymous
2012-10-29 22:30
201210292230
15
Name:
Anonymous
2012-10-29 22:41