## Search found 11 matches

Fri Apr 22, 2016 11:49 am
Forum: Volume 3 (300-399)
Topic: 378 - Intersecting Lines
Replies: 48
Views: 14719

Problem: https://uva.onlinejudge.org/external/3/378.pdf
What is wrong with http://ideone.com/GvTfIo?
It solves mentioned input and https://www.udebug.com/UVa/378 random input.
But still getting WA after submit.
Thu Mar 31, 2016 1:33 pm
Forum: Volume 2 (200-299)
Topic: 263 - Number Chains
Replies: 45
Views: 7335

### [2 Empty Lines At the End of File]263 - Number Chains

At the end, there should be 2 empty lines.
Don't know why UVa considers this as WA(Wrong Answer), it may be considered as "Presentation Error"
Fri Mar 25, 2016 12:06 pm
Forum: Volume 110 (11000-11099)
Topic: 11080 - Place the Guards
Replies: 40
Views: 10904

### Re[Ratul Ahmed]: 11080 - Place the Guards

Hello Ratul Ahmed, I followed your approach: 1) make 2 sets of vertex for each sub-graph or graph 2) take the minimum vertices from each of those sets & sum it 3) check how many vertices has no adjacent (help the king to find the minimum number of guards needed to guard all the junctions and streets...
Fri Mar 25, 2016 12:03 pm
Forum: Volume 110 (11000-11099)
Topic: 11080 - Place the Guards
Replies: 40
Views: 10904

### 11080 - Place the Guards[uDebug output different for TC sequence change]

In uDebug getting different output if we change the test case sequence. For example: input [2, input#1, input#2] = output[o#1, o#2] but input[2, input#2, input#1] giving output[o#2, o#3] Why ? -------------------------------------------------------------- Input: 2 5 6 0 1 0 2 1 3 2 3 4 0 5 0 13 12 0...
Wed Mar 23, 2016 2:07 pm
Forum: Volume 112 (11200-11299)
Topic: 11220 - Decoding the message.
Replies: 54
Views: 20012

### Re[saniatrasel]: 11220 - Decoding the message.

Hello Saniat, #1# Input Case # How about handling below case: Input: 1 1,234 1*23 12345 12345 123 1234 1234 12 123 1234 1234 Output: Case #1: 1*34 I checked in uDebug and it seems it accepts numerical digits although in the problem description it said " A word is formed by the letters A-Z and a-z an...
Fri Mar 11, 2016 8:47 am
Forum: Volume 119 (11900-11999)
Topic: 11906 - Knight in a War Grid
Replies: 13
Views: 7412

### 11906 - Knight in a War Grid

About water: For a single move
1. Just start position and end position need to consider
2. No need to consider the whole path(alternate paths etc.)

Need to calculate neighbors carefully.
Special cases: M = N, N or M = 0...
Tue Mar 08, 2016 8:34 am
Forum: Volume 5 (500-599)
Topic: 567 - Risk
Replies: 46
Views: 16143

### 567 - Risk: Output Format

For a case:
• 1. At the end of showing output, print a blank line.
• 2. Print another blank line, so that next case's output can be shown from here.
i.e. At the end there will be 2 blank lines.
Tue Mar 08, 2016 8:31 am
Forum: Volume 5 (500-599)
Topic: 567 - Risk
Replies: 46
Views: 16143

### Re: 567 - Risk

For each case:
• 1. At the end of showing output, print a blank line.
• 2. Print another blank line so that next case can start from here.
i.e. After last case there will be 2 blank lines.
Tue Feb 23, 2016 2:34 pm
Forum: Volume 2 (200-299)
Topic: 280 - Vertex
Replies: 95
Views: 20997

### Re: 280 - Vertex

All the test cases in discussion board match in uDebug.
But still WA.

And suggest what to do.
Fri Feb 19, 2016 9:59 am
Forum: Bugs and suggestions
Topic: Submission errors
Replies: 1
Views: 2073

### [10340 - All in All] Runtime Error

I'm getting Runtime Error. Why?
Solution: Array length use adequate number.
Sat Nov 07, 2015 6:15 am
Forum: Volume 109 (10900-10999)
Topic: 10948 - The primary problem
Replies: 27
Views: 17624

### Re: 10948 - The primary problem

Obaida wrote:

Code: Select all

``````Accepted now. But it takes so much time could any one give me a better formula.
``````
@Obaida: The trick is generating/detecting prime numbers.