11192 - Group Reverse

All about problems in Volume 111. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 11192 - Group Reverse

Post by brianfry713 » Tue Oct 29, 2013 10:19 pm

Don't read and write to files.
Check input and AC output for thousands of problems on uDebug!

sadmansobhan
New poster
Posts: 16
Joined: Thu Oct 10, 2013 8:06 am

Re: 11192 - Group Reverse

Post by sadmansobhan » Wed Oct 30, 2013 8:58 pm

i submit it again without file read or write. but again it shows WA.

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 11192 - Group Reverse

Post by brianfry713 » Thu Oct 31, 2013 10:44 pm

Input:

Code: Select all

3 ABC
3 ABC
0
Output should be:

Code: Select all

ABC
ABC
Check input and AC output for thousands of problems on uDebug!

sadmansobhan
New poster
Posts: 16
Joined: Thu Oct 10, 2013 8:06 am

Re: 11192 - Group Reverse

Post by sadmansobhan » Fri Nov 01, 2013 10:02 pm

brianfry713, my code give the same output that you provide.But it shows wrong answer

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 11192 - Group Reverse

Post by brianfry713 » Tue Nov 05, 2013 12:54 am

You're printing extra blank lines.
Check input and AC output for thousands of problems on uDebug!

sadmansobhan
New poster
Posts: 16
Joined: Thu Oct 10, 2013 8:06 am

Re: 11192 - Group Reverse

Post by sadmansobhan » Tue Nov 05, 2013 9:16 pm

Thanks brianfry713

bgcsaif
New poster
Posts: 38
Joined: Mon Sep 29, 2014 4:03 pm

Re: 11192 - Group Reverse

Post by bgcsaif » Sat Oct 04, 2014 7:28 am

Sir, can you give me some critical inputs please? Here is my code. Works fine. But WA. . . .Why?
http://ideone.com/nBaaBS

lighted
Guru
Posts: 585
Joined: Wed Jun 11, 2014 9:56 pm
Location: Kyrgyzstan, Bishkek

Re: 11192 - Group Reverse

Post by lighted » Sat Oct 04, 2014 12:19 pm

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
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman

Post Reply

Return to “Volume 111 (11100-11199)”