Search found 6 matches

by shumphreys
Fri Dec 11, 2009 2:05 am
Forum: Volume 4 (400-499)
Topic: 489 - Hangman Judge
Replies: 52
Views: 23855

NOOB - question re INput and Output

Hi,
Prob a daft question but I keep stumbing over it ... :-(

If Input says (e.g. 489 Hangman Judge)
1
cheese
chese
2
cheese
abcdefg
3
cheese
abcdefgij
-1

with Output:
Round 1
You win.
Round 2
You chickened out.
Round 3
You lose.

Does this mean that each set of input data be gathered and processed ...
by shumphreys
Fri Mar 23, 2007 6:29 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 50821

AC

AC finally - thanks mamun for pointing me on the right path!
by shumphreys
Fri Mar 23, 2007 3:16 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 50821

10340 WA

Hi Mamun,

Thx for the response - what was I thinking of? ..... Red-faced here and glad to be shown the error .... back to the drawing board on this one ... very grateful for your help ..
S
by shumphreys
Fri Mar 23, 2007 12:23 pm
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 50821

10340 WA

Hi, Thx for the response.
The test data you gave me passes OK. I am getting a WA rather than RE from the judge. I do not usually use C++ but I thought the arrays were global i.e. declared outside of main, or do I need to specify that in some way with a directive?
Thx
S
by shumphreys
Fri Mar 23, 2007 2:18 am
Forum: Volume 103 (10300-10399)
Topic: 10340 - All in All
Replies: 129
Views: 50821

10340 WA

Hi, I am also getting wrong answer, I have read all the posts relating to this and increased my array size and tested with all forum suggested input data, my code gives the right results but still getting WA. Any ideas?

Code: Select all

<snipped>
thx
by shumphreys
Thu Mar 22, 2007 2:47 am
Forum: Volume 5 (500-599)
Topic: 591 - Box of Bricks
Replies: 80
Views: 25011

591: PE problem ...

HI, Having eventually managed to get an AC I know get a PE. I know it's not a major issue but I'd like to clear up what I might have got wrong. I copy below the i/o parts of the cod ein the hope that someone will guide me.

With thanks


cin >> stackTotal;
// outer loop only entered if the stack ...

Go to advanced search