Hi, I am trying to solve the problem 10230 but always got WA. I've tried a lot of test cases, but still can't figure out what's wrong. Can anyone help me with that? Is there some special cases ? Thank you :)
#include<iostream>
#include<stdlib.h>
using namespace std;
int a,b,n,s;
char map[1024 ...
Search found 4 matches
- Thu Oct 04, 2012 9:34 am
- Forum: Volume 102 (10200-10299)
- Topic: 10230 - Savage Garden
- Replies: 11
- Views: 6004
- Fri Jun 29, 2012 12:45 pm
- Forum: Bugs and suggestions
- Topic: 10391 - Compound Words
- Replies: 0
- Views: 2393
10391 - Compound Words
Hi, I think there is some ambiguity in the problem statement. I've post my understanding of this problem here http://online-judge.uva.es/board/viewto ... 20&t=71006 . See if it is useful
- Fri Jun 29, 2012 12:42 pm
- Forum: Volume 103 (10300-10399)
- Topic: 10391 - Compound Words
- Replies: 40
- Views: 24770
Re: 10391 - Compound Words
Well I've just AC this problem and I think the problem statement has some problem so I write down in case you meet the same problem in the further.
"A two-word compound word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary"
The word exactly has ...
"A two-word compound word is a word in the dictionary that is the concatenation of exactly two other words in the dictionary"
The word exactly has ...
- Fri Jun 29, 2012 6:48 am
- Forum: Volume 103 (10300-10399)
- Topic: 10391 - Compound Words
- Replies: 40
- Views: 24770
10391 - Compound Words
Hi. I got WA for this question. But I think I have removed the case that one word can be fromed in different ways. Can anyone tell some special cases for this problem ? Thanks
And below is my code #include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
char *r;
char *f;
int ...
And below is my code #include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;
char *r;
char *f;
int ...