Java&C++ Challenge (13)

1 Name: #!/usr/bin/anonymous : 2008-08-02 20:35 ID:tWPDyQ6g

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.

2 Name: #!/usr/bin/anonymous : 2008-08-03 02:58 ID:Heaven

why only Java and C++?

3 Name: #!/usr/bin/anonymous : 2008-08-03 04:50 ID:Heaven

For a set of integers S, is there a non-empty subset that sums to N.

4 Name: #!/usr/bin/anonymous : 2008-08-03 07:35 ID:1+gPFSxf

>>3

#include <stdio.h>

int main(int argc,char* argv[]){
printf("Yes.\n");
return 0;
}

5 Name: #!/usr/bin/anonymous : 2008-08-03 12:25 ID:0h5oKiCQ

>>4
Now, you must post a slghty more difficult problem.

6 Name: #!/usr/bin/anonymous : 2008-08-03 17:38 ID:k4pWlCSM

>>4
For the set of integers { 1, 2, 3, 4, 5 }, is there a non-empty subset that sums to 250000000000?

7 Name: #!/usr/bin/anonymous : 2008-08-03 18:06 ID:JVUWpb80

>>6
Apparently!

8 Name: #!/usr/bin/anonymous : 2008-08-03 18:08 ID:JVUWpb80

>>6

#include <stdio.h>

int main(int argc,char* argv[]){
printf("No.\n");
return 0;
}

Bug fixed.

9 Name: #!/usr/bin/anonymous : 2008-08-03 18:36 ID:k4pWlCSM

>>8
ENTERPRISE QUALITY

10 Name: #!/usr/bin/anonymous : 2008-08-04 08:04 ID:mea+DW9K

I made the code more robust:

#include

int main(int argc,char* argv[]){
printf("Maybe.\n");
return 0;
}

11 Name: #!/usr/bin/anonymous : 2008-08-09 06:01 ID:Heaven

>>10
include what?

12 Name: #!/usr/bin/anonymous : 2008-11-01 08:32 ID:CwD9KHV7

for(;;){
printf("I like c++/java\n");
}

13 Name: #!/usr/bin/anonymous : 2008-11-01 11:14 ID:Heaven

>>12
don't bump topics with silliness.

This thread has been closed. You cannot post in this thread any longer.