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 »

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 »

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 »

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 »

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 »

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 »

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

Re: 11192 - Group Reverse

Post by bgcsaif »

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: 587
Joined: Wed Jun 11, 2014 9:56 pm
Location: Kyrgyzstan, Bishkek

Re: 11192 - Group Reverse

Post 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
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)”