Page 2 of 2

Re: 11192 - Group Reverse

Posted: Tue Oct 29, 2013 10:19 pm
by brianfry713
Don't read and write to files.

Re: 11192 - Group Reverse

Posted: Wed Oct 30, 2013 8:58 pm
by sadmansobhan
i submit it again without file read or write. but again it shows WA.

Re: 11192 - Group Reverse

Posted: Thu Oct 31, 2013 10:44 pm
by brianfry713
Input:

Code: Select all

3 ABC
3 ABC
0
Output should be:

Code: Select all

ABC
ABC

Re: 11192 - Group Reverse

Posted: Fri Nov 01, 2013 10:02 pm
by sadmansobhan
brianfry713, my code give the same output that you provide.But it shows wrong answer

Re: 11192 - Group Reverse

Posted: Tue Nov 05, 2013 12:54 am
by brianfry713
You're printing extra blank lines.

Re: 11192 - Group Reverse

Posted: Tue Nov 05, 2013 9:16 pm
by sadmansobhan
Thanks brianfry713

Re: 11192 - Group Reverse

Posted: Sat Oct 04, 2014 7:28 am
by bgcsaif
Sir, can you give me some critical inputs please? Here is my code. Works fine. But WA. . . .Why?
http://ideone.com/nBaaBS

Re: 11192 - Group Reverse

Posted: Sat Oct 04, 2014 12:19 pm
by lighted
Input

Code: Select all

2 SircanyougivemesomecriticalinputspleaseHereismycodeWorksfineButWAWhy
34 SircanyougivemesomecriticalinputspleaseHereismycodeWorksfineButWAWhy
2 11192GroupReversehttpideonecomnBaaBS
3 11192GroupReversehttpideonecomnBaaBS
4 11192GroupReversehttpideonecomnBaaBS
6 11192GroupReversehttpideonecomnBaaBS
9 11192GroupReversehttpideonecomnBaaBS 
12 11192GroupReversehttpideonecomnBaaBS
18 11192GroupReversehttpideonecomnBaaBS
0
Acc Output

Code: Select all

pstupnilacitircemosemeviguoynacriSyhWAWtuBenifskroWedocymsiereHesael
iScrnaoyguvimesemoceiritacilpntupselsaHereiemscydoWeroskifenuBWtWAyh
hesreveRpuorG29111SBaaBnmocenoediptt
eRpuorG29111ediptthesrevSBaaBnmoceno
uorG29111hesreveRpenoedipttSBaaBnmoc
G29111eRpuorhesrevedipttmocenoSBaaBn
9111orG2eRpusrevttheedipcenoBnmoSBaa
111G29uoreRprevhespttedienomocaBnSBa
1191G2orpueRevsrhettipednocemoBnaaSB