11192 - Group Reverse
Moderator: Board moderators
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 11192 - Group Reverse
Don't read and write to files.
Check input and AC output for thousands of problems on uDebug!
-
- New poster
- Posts: 16
- Joined: Thu Oct 10, 2013 8:06 am
Re: 11192 - Group Reverse
i submit it again without file read or write. but again it shows WA.
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 11192 - Group Reverse
Input:Output should be:
Code: Select all
3 ABC
3 ABC
0
Code: Select all
ABC
ABC
Check input and AC output for thousands of problems on uDebug!
-
- New poster
- Posts: 16
- Joined: Thu Oct 10, 2013 8:06 am
Re: 11192 - Group Reverse
brianfry713, my code give the same output that you provide.But it shows wrong answer
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 11192 - Group Reverse
You're printing extra blank lines.
Check input and AC output for thousands of problems on uDebug!
-
- New poster
- Posts: 16
- Joined: Thu Oct 10, 2013 8:06 am
Re: 11192 - Group Reverse
Thanks brianfry713
Re: 11192 - Group Reverse
Sir, can you give me some critical inputs please? Here is my code. Works fine. But WA. . . .Why?
http://ideone.com/nBaaBS
http://ideone.com/nBaaBS
Re: 11192 - Group Reverse
Input
Acc Output
Code: Select all
2 SircanyougivemesomecriticalinputspleaseHereismycodeWorksfineButWAWhy
34 SircanyougivemesomecriticalinputspleaseHereismycodeWorksfineButWAWhy
2 11192GroupReversehttpideonecomnBaaBS
3 11192GroupReversehttpideonecomnBaaBS
4 11192GroupReversehttpideonecomnBaaBS
6 11192GroupReversehttpideonecomnBaaBS
9 11192GroupReversehttpideonecomnBaaBS
12 11192GroupReversehttpideonecomnBaaBS
18 11192GroupReversehttpideonecomnBaaBS
0
Code: Select all
pstupnilacitircemosemeviguoynacriSyhWAWtuBenifskroWedocymsiereHesael
iScrnaoyguvimesemoceiritacilpntupselsaHereiemscydoWeroskifenuBWtWAyh
hesreveRpuorG29111SBaaBnmocenoediptt
eRpuorG29111ediptthesrevSBaaBnmoceno
uorG29111hesreveRpenoedipttSBaaBnmoc
G29111eRpuorhesrevedipttmocenoSBaaBn
9111orG2eRpusrevttheedipcenoBnmoSBaa
111G29uoreRprevhespttedienomocaBnSBa
1191G2orpueRevsrhettipednocemoBnaaSB
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman