Okay, here is the challenge.
The first one after me creates a very easy problem. The first person to post a working solution to that problem with either Java or C++ posts another problem but this time slightly more difficult then the previous and so on. The fun part is to solve the problem and make a new one, slightly more difficult. The first problem should be very, very easy. Something like, "add two numbers." ;) You get my meaning.
Due to the insane amount of trolls and retards on /prog/, this little fun game is not possible.
why only Java and C++?
For a set of integers S, is there a non-empty subset that sums to N.
#include <stdio.h>
int main(int argc,char* argv[]){
printf("Yes.\n");
return 0;
}
>>4
Now, you must post a slghty more difficult problem.
>>4
For the set of integers { 1, 2, 3, 4, 5 }, is there a non-empty subset that sums to 250000000000?
>>10
include what?
for(;;){
printf("I like c++/java\n");
}
>>12
don't bump topics with silliness.