Search found 293 matches

by chunyi81
Sat Jun 24, 2006 11:49 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 82867

Try the search function. There are some test cases lying around in older threads.
by chunyi81
Sat Jun 24, 2006 11:48 am
Forum: Bugs and suggestions
Topic: 488 - problem with judge output?
Replies: 1
Views: 2275

488 - problem with judge output?

The output description says: For the output of your program, you will be printing wave forms each separated by a blank line. and NOTE: There is a blank line after each separate waveform, excluding the last one. but it seems that in the test cases the judge uses to check our program, there is a blank...
by chunyi81
Sat Jun 24, 2006 11:42 am
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 32378

Input: 1 3 2 Output: 1\n 22\n 333\n 22\n 1\n \n 1\n 22\n 333\n 22\n 1\n Should I remove the last '\n' ? Nope. In fact this is ok. Apparently I overlooked one line of code in your program which does this. But then again to get AC you have to print a blank line after each triangle wave, which is exac...
by chunyi81
Thu Jun 22, 2006 5:32 pm
Forum: Off topic (General chit-chat)
Topic: Map Problem
Replies: 12
Views: 4882

What Cho means is that #include <cstdio> but not #include <cstdio.h>

You don't have to put .h for C++ headers
by chunyi81
Thu Jun 22, 2006 5:21 pm
Forum: Volume 4 (400-499)
Topic: 488 - Triangle Wave
Replies: 270
Views: 32378

Check the output description:
The outputs of two consecutive cases will be separated by a blank line.
NOTE: There is a blank line after each separate waveform, excluding the last one
Remove your code after you get AC.
by chunyi81
Wed Jun 21, 2006 4:00 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 82867

You should print "Jolly" for n = 1.

See previous threads on this topic.
by chunyi81
Sat Jun 17, 2006 5:51 am
Forum: Off topic (General chit-chat)
Topic: Who will win the World Cup?
Replies: 53
Views: 128665

Agree with that. Too bad that my local broadcaster is only four matches live. :(
by chunyi81
Sat Jun 17, 2006 5:49 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 21036

Dear Ng Chun Yi, - I have stated the Problem No in the topic title. Pls check before post. - It produce a wrong output. It is not a correct one. You can submit and check it carefully before postin. I do so before I post. Okok... It looks like I need a visit to the optician. :oops: And I agree that ...
by chunyi81
Fri Jun 16, 2006 2:48 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 189379

Instead of using an array to store all the input, why don't you read input like this:

Code: Select all

while (cin >> i >> j)
{
// compute and output
}
by chunyi81
Fri Jun 16, 2006 2:44 pm
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 21036

First thing though, please specify the problem number in your post next time.

I believe you are referring to problem 103, which has a yellow tick next to the problem. This means that for an input, it is possible to have more than one correct output as shamim stated in his post.
by chunyi81
Tue Jun 13, 2006 5:12 pm
Forum: Volume 4 (400-499)
Topic: 496 - Simply Subsets
Replies: 48
Views: 9468

There seems to be some dispute whether there are duplicates in the input My AC code did not consider duplicates and got AC. I used gets function to read each set of numbers. You might want to check your subset algorithm. My approach: 1) For two sets A and B. If A is a subset of B and B is a subset o...
by chunyi81
Sun Jun 11, 2006 4:49 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 189379

Have you read the thread at the top of this forum. Your question is answered there.

To make thing clear: There is more than one test case in the input. You program has to read input until end of file and not just one ionput and output.
by chunyi81
Sat Jun 10, 2006 3:41 pm
Forum: C++
Topic: compile error (compiled successfully using visual c++)
Replies: 3
Views: 1815

Which version of visual C++ compiler are you using?

Older versions of Visual C++ will have this problem. However Visual C++ .NET will not have this problem.
by chunyi81
Sun Jun 04, 2006 5:17 am
Forum: Volume 5 (500-599)
Topic: 529 - Addition Chains
Replies: 32
Views: 4171

Try removing the line "package src;" and try submitting again. I used to submit my solutions to some problems in UVA in Java, but I did not use packages at all in any solution I submitted to the UVA online judge.
by chunyi81
Mon May 29, 2006 5:27 pm
Forum: Off topic (General chit-chat)
Topic: Who will win the World Cup?
Replies: 53
Views: 128665

I think some of the African teams such as Ivory Coast and Tunisia will be the surprise package this World Cup.

Go to advanced search