755 - 487--3279
Moderator: Board moderators
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 755 - 487-3279
Always print a newline char at the end of the last line.
Check input and AC output for thousands of problems on uDebug!
Re: 755 - 487-3279
Okay, I've added the newline at the end, still judged WA though
http://ideone.com/8AnQsG
http://ideone.com/8AnQsG
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 755 - 487-3279
No duplicates.
not
No Duplicates.
not
No Duplicates.
Check input and AC output for thousands of problems on uDebug!
Re: 755 - 487-3279
Oh I see.. how could I miss such mistake ![:cry:](./images/smilies/icon_cry.gif)
![:cry:](./images/smilies/icon_cry.gif)
Re: 755 - 487--3279
I've tested many kind of test,but I still don't know why....plz help
![:(](./images/smilies/icon_frown.gif)
Code: Select all
AC
Last edited by xz816111 on Fri Oct 31, 2014 4:06 pm, edited 1 time in total.
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 755 - 487--3279
Print a blank line between datasets. Don't print an extra blank line at the end.
Check input and AC output for thousands of problems on uDebug!
Re: 755 - 487--3279
still WA
![:(](./images/smilies/icon_frown.gif)
Code: Select all
AC
Last edited by xz816111 on Fri Oct 31, 2014 4:07 pm, edited 2 times in total.
Re: 755 - 487--3279
Try to check input in this thread before posting.
Ghost77 dimen wrote:Hello, revenger.![]()
Try this sample input.
1
12
0-0-0-0-0-0-0
00-0-0-0-0-0
000-0-0-0-0
0000-0-0-0
00000-0-0
000000-0
001-----------------------------------0000
001-------------------------------------------------0000
0---------00000--------1
0000--------------------------------001
---------------------------------1000000
1000--------000----------------------------------------
The output should be as follows
<no blank line>
000-0000 6
000-0001 2
001-0000 2
100-0000 2
<no blank line>
Good luck.
Ghost77 dimen wrote:Ok, try this sample input.![]()
1
11
0-0-0-0-0-0-0
00-0-0-0-0-0
000-0-0-0-0
0000-0-0-0
00000-0-0
000000-0
001-----------------------------------0000
001-------------------------------------------------0000
0---------00000--------1
0000--------------------------------001
---------------------------------1000000
The output should be as follows
<no blank line>
000-0000 6
000-0001 2
001-0000 2
<no blank line>
Good luck.
A person who sees the good in things has good thoughts. And he who has good thoughts receives pleasure from life... Bediuzzaman
Re: 755 - 487--3279
Thank u so much!!Love u!!
Re: 755 - 487--3279
I'm getting TLE with this code. Can anyone please help me out?
https://ideone.com/d0Y2Xr
https://ideone.com/d0Y2Xr
Re: 755 - 487--3279
Getting TLE for this code
.Can someone plz tell me what am i doning wrong?
code->https://ideone.com/mxjlMN
![:(](./images/smilies/icon_frown.gif)
code->https://ideone.com/mxjlMN