I am getting number of PEs. I have tried to skip the line full of spaces, removing the leading spaces, removing the trailing space, etc.
What's the trick? Any example? Thanks.
Search found 7 matches
- Wed May 30, 2007 5:59 pm
- Forum: Volume 5 (500-599)
- Topic: 554 - Caesar Cypher
- Replies: 27
- Views: 11274
- Fri May 18, 2007 2:00 am
- Forum: Volume 111 (11100-11199)
- Topic: 11166 - Power Signs
- Replies: 14
- Views: 7250
I think I am using the Greedy approach as described above. However, I got WAs.
Any tricky input or traps I am missing? Thanks.
Any tricky input or traps I am missing? Thanks.
Code: Select all
accepted
- Wed May 02, 2007 3:32 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10848 - Make Palindrome Checker
- Replies: 26
- Views: 15420
I am keeping WA for more than 10 times. I have checked the conditions 2-7 to be right. The only condition 1 puzzled me. What's the logic I should detect if the first string is empty? Also, any critical inputs? Below please find my codes. #include <stdio.h> #include <stdlib.h> #include <string.h> #in...
- Sun Apr 22, 2007 6:34 am
- Forum: Volume 104 (10400-10499)
- Topic: 10442 - Basic
- Replies: 9
- Views: 5206
I am puzzled for many WA. Would someone kindly please check with my I/O? Input: 25 2#10##111111111# 2#10##10##10##111111111# 2#101##20##16##12345abcdf# 2#101##20##11##12345a# 2#101##20##11##12345ab# 2#101##20##17##12345ab# 2#101##20##0##12345ab# 2#101##20##2##101# 2#101##20###2##101# 16#f##e##d##c##...
- Wed Apr 18, 2007 3:48 am
- Forum: Volume 104 (10400-10499)
- Topic: 10455 - Gray Code
- Replies: 3
- Views: 3352
- Wed Mar 14, 2007 12:40 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10713 - Map
- Replies: 16
- Views: 6147
- Sat Mar 10, 2007 7:07 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11001 - Necklace
- Replies: 38
- Views: 17877
Hi, I am getting WA though passing the test cases posted here. The way I do the question is similar. Would anyone give me a hand to tell if there's anything wrong? Thanks a lot in advance. #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> int main(int argc, char **argv) { ...