10851 - 2D Hieroglyphs decoder
Moderator: Board moderators
10851 - 2D Hieroglyphs decoder
I have WA in this problem. Can anyone tel me some critical input cases?
-
- Learning poster
- Posts: 77
- Joined: Fri Dec 17, 2004 11:06 am
- Location: East West University, Dhaka, Bangladesh
- Contact:
10851 ! Strange Problem....helppppp
Strange Problem!
When I take the input, my compiler take
When I take the input, my compiler take
Please join The ACM Solver Group at Yahoo
http://groups.yahoo.com/group/acm_solver/
http://groups.yahoo.com/group/acm_solver/
-
- Guru
- Posts: 584
- Joined: Thu Jun 19, 2003 3:48 am
- Location: Sanok, Poland
- Contact:
-
- Learning poster
- Posts: 77
- Joined: Fri Dec 17, 2004 11:06 am
- Location: East West University, Dhaka, Bangladesh
- Contact:
Thanks for ur replay.
I know that '\\' this is a single character. But what will be the method to
take the input ?
Now, I am just taking the inputs using gets() and then whenever I get
'\\', I just make it '\' and insert a '\' next to it.
I know that '\\' this is a single character. But what will be the method to
take the input ?
Now, I am just taking the inputs using gets() and then whenever I get
'\\', I just make it '\' and insert a '\' next to it.
Please join The ACM Solver Group at Yahoo
http://groups.yahoo.com/group/acm_solver/
http://groups.yahoo.com/group/acm_solver/
You can use scanf:
Then either s=='/' or s=='\\' will be true.
Code: Select all
char s[128];
scanf("%s", s);