i tried a lot of cases
and still give me wa
please help !!
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashSet;
import ...
Search found 4 matches
- Wed Jul 30, 2014 2:03 am
- Forum: Volume 4 (400-499)
- Topic: 454 - Anagrams
- Replies: 97
- Views: 36691
- Wed Jul 23, 2014 4:17 pm
- Forum: Volume 122 (12200-12299)
- Topic: 12247 - Jollo
- Replies: 11
- Views: 6641
Re: 12247 - Jollo
Input: 11 17 4 16 39
32 18 14 8 30
50 46 51 23 5
44 32 45 40 21
34 43 52 37 27
19 27 23 18 52
1 4 17 32 47
31 12 41 44 47
18 42 40 16 40
44 35 19 12 22
16 45 40 15 5
42 34 32 40 27
31 41 6 23 20
1 1 7 41 45
1 6 10 40 49
49 7 31 44 18
28 35 38 15 49
43 4 6 50 43
8 4 7 14 3
27 42 3 9 6
23 10 39 8 25 ...
32 18 14 8 30
50 46 51 23 5
44 32 45 40 21
34 43 52 37 27
19 27 23 18 52
1 4 17 32 47
31 12 41 44 47
18 42 40 16 40
44 35 19 12 22
16 45 40 15 5
42 34 32 40 27
31 41 6 23 20
1 1 7 41 45
1 6 10 40 49
49 7 31 44 18
28 35 38 15 49
43 4 6 50 43
8 4 7 14 3
27 42 3 9 6
23 10 39 8 25 ...
- Sat Jun 28, 2014 6:16 am
- Forum: Volume 100 (10000-10099)
- Topic: 10038 - Jolly Jumpers
- Replies: 445
- Views: 153540
Re: 10038 - Jolly Jumpers WA
some useful test cases
Input:
Output:
Input:
Code: Select all
2 1 2
4 1 4 3 1
4 1 4 2 3
5 1 4 2 -1 6
2 1 3
1 1
1 10
5 4 1 4 3 1
11 1 2 4 7 11 16 22 29 37 46 56
3 2 1 3
Code: Select all
Jolly
Jolly
Jolly
Not jolly
Not jolly
Jolly
Jolly
Not jolly
Jolly
Jolly
- Thu Jun 26, 2014 5:57 am
- Forum: Volume 4 (400-499)
- Topic: 401 - Palindromes
- Replies: 196
- Views: 58699
Re: 401-Palindromes Why getting WA
here's some input cases i tried
Input:
2BBS
B2SB
BBB
BBBB
AAA
AAAA
HII
O
X
B
xX
b
Output:
2BBS -- is not a palindrome.
B2SB -- is not a palindrome.
BBB -- is a regular palindrome.
BBBB -- is a regular palindrome.
AAA -- is a mirrored palindrome.
AAAA -- is a mirrored palindrome.
HII -- is ...
Input:
2BBS
B2SB
BBB
BBBB
AAA
AAAA
HII
O
X
B
xX
b
Output:
2BBS -- is not a palindrome.
B2SB -- is not a palindrome.
BBB -- is a regular palindrome.
BBBB -- is a regular palindrome.
AAA -- is a mirrored palindrome.
AAAA -- is a mirrored palindrome.
HII -- is ...