I'm using bfs, but I wonder which part of my code which made me got Runtime Error, would someone kind to enlighten me?
I've test my solution and got accepted in another oj
#include<cstdio>
#include<cstring>
#include<cstdlib>
#define MAX 100
#define F(i,s,e) for(i=s;i<e;i++)
struct node{
int r ...
Search found 37 matches
- Thu Mar 06, 2008 9:14 pm
- Forum: Volume 5 (500-599)
- Topic: 532 - Dungeon Master
- Replies: 39
- Views: 14517
- Fri Jul 06, 2007 3:42 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11148 - Moliu Fractions
- Replies: 19
- Views: 15552
- Fri Jun 22, 2007 7:10 am
- Forum: Volume 2 (200-299)
- Topic: 250 - Pattern Matching Prelims
- Replies: 15
- Views: 9657
Thanks for replying helloneo..
I still got WA
this is how I implement the EPS
is it rite?
hmm...., is there any tricky input on this problem...

I still got WA

this is how I implement the EPS
Code: Select all
if(res2+1e-6<=smallCol+1e-6&&res+1e-6<=smallRow+1e-6) {smallRow=res;smallCol=res2;ansR=r;ansC=c;}
hmm...., is there any tricky input on this problem...
- Fri Jun 22, 2007 6:41 am
- Forum: Volume 2 (200-299)
- Topic: 250 - Pattern Matching Prelims
- Replies: 15
- Views: 9657
Why it always get WA...
Hi, I think this problem is straightforward, but it gives me multiple WA..., can anyone give me some hints? I'm very very curious bout this problem...
Thanks :D
#include<stdlib.h>
#include<stdio.h>
#define MAX 26
#define INF 1000000000000
long double arr[MAX][MAX];
int Row,Col;
int ansR,ansC ...
Thanks :D
#include<stdlib.h>
#include<stdio.h>
#define MAX 26
#define INF 1000000000000
long double arr[MAX][MAX];
int Row,Col;
int ansR,ansC ...
- Thu May 31, 2007 4:06 am
- Forum: Volume 105 (10500-10599)
- Topic: 10515 - Powers Et Al.
- Replies: 124
- Views: 45174
- Sat May 26, 2007 6:39 pm
- Forum: Volume 1 (100-199)
- Topic: 120 - Stacks of Flapjacks
- Replies: 118
- Views: 30176
Can anyone show me a tricky input?
I got multiple WA on this problem.
Can someone check the correctness of this I/O set?
INPUT
2
33 21 45
33 55
1
2 1
1 2
12 45 1 2 4 7 5 11 21 99 12 47
56 12 48
75 2 1 44 53 84 21 46 82 43 99 49 89 7 9
1 2 3 6 7 8 4 5
1 3 19 4 95 62 42 43 13 2
1 2 3 4 5 6 7 8 9 10 11 12 14 13 15 16 17 18 19 ...
Can someone check the correctness of this I/O set?
INPUT
2
33 21 45
33 55
1
2 1
1 2
12 45 1 2 4 7 5 11 21 99 12 47
56 12 48
75 2 1 44 53 84 21 46 82 43 99 49 89 7 9
1 2 3 6 7 8 4 5
1 3 19 4 95 62 42 43 13 2
1 2 3 4 5 6 7 8 9 10 11 12 14 13 15 16 17 18 19 ...
- Tue May 15, 2007 2:09 pm
- Forum: Volume 7 (700-799)
- Topic: 726 - Decode
- Replies: 36
- Views: 13908
- Sun Apr 29, 2007 6:47 am
- Forum: Volume 4 (400-499)
- Topic: 497 - Strategic Defense Initiative
- Replies: 144
- Views: 44322
critical I/O set
Hi, can someone check this I/O set:
INPUT
11
1
2
3
4
5
5
4
3
2
1
1
1
3
4
2
5
6
100
45
46
47
48
49
11
1
1
6
2
3
5
3
2
10
1
3
4
2
5
6
OUTPUT
Max hits: 5
1
2
3
4
5
Max hits: 1
1
Max hits: 1
1
Max hits: 0
Max hits: 0
Max hits: 5
1
3
4
5
6
Max hits ...
INPUT
11
1
2
3
4
5
5
4
3
2
1
1
1
3
4
2
5
6
100
45
46
47
48
49
11
1
1
6
2
3
5
3
2
10
1
3
4
2
5
6
OUTPUT
Max hits: 5
1
2
3
4
5
Max hits: 1
1
Max hits: 1
1
Max hits: 0
Max hits: 0
Max hits: 5
1
3
4
5
6
Max hits ...
- Sun Apr 22, 2007 8:03 am
- Forum: Volume 102 (10200-10299)
- Topic: 10293 - Word Length and Frequency
- Replies: 18
- Views: 11135
- Mon Apr 16, 2007 8:13 am
- Forum: Volume 1 (100-199)
- Topic: 159 - Word Crosses
- Replies: 32
- Views: 6708
- Sat Apr 14, 2007 1:15 pm
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 59819
- Sat Mar 31, 2007 2:39 am
- Forum: Volume 2 (200-299)
- Topic: 292 - Presentation Error
- Replies: 8
- Views: 18776
292 - Presentation Error
Hi there, can anyone post more I/O set, and is this I/O set right??
INPUT
11
1 2
Just one line?
Just one line?
2 2
The first characters of the alphabet are:
[abcde]
Here they come:
a b c d e
1 1
That's it: [abcde]
That's it: AbCdE
1 1
[2] and [3] make [5]
I guess 2 and 3 are less than 50.
1 1 ...
INPUT
11
1 2
Just one line?
Just one line?
2 2
The first characters of the alphabet are:
[abcde]
Here they come:
a b c d e
1 1
That's it: [abcde]
That's it: AbCdE
1 1
[2] and [3] make [5]
I guess 2 and 3 are less than 50.
1 1 ...
- Tue Mar 27, 2007 6:23 pm
- Forum: Volume 4 (400-499)
- Topic: 469 - Wetlands of Florida
- Replies: 63
- Views: 32266
- Tue Mar 27, 2007 3:03 am
- Forum: Volume 101 (10100-10199)
- Topic: 10101 - Bangla Numbers
- Replies: 122
- Views: 45302
- Sat Mar 17, 2007 7:07 pm
- Forum: C
- Topic: quicksort built in
- Replies: 8
- Views: 10492