11107 - Life Forms

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

Artifère
New poster
Posts: 4
Joined: Tue Mar 19, 2013 9:31 pm

Re: 11107 - Life Forms

Post by Artifère »

Thank you very much for your responsiveness. I found why my algorithme was false: I did not add separators between the strings I concatenated to compute a suffix array.
hpjhc
New poster
Posts: 17
Joined: Wed Jun 26, 2013 10:35 am

Re: 11107 - Life Forms

Post by hpjhc »

Code: Select all

delete after AC
Last edited by hpjhc on Sat May 10, 2014 4:57 am, edited 1 time in total.
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 11107 - Life Forms

Post by brianfry713 »

http://ideone.com/CNU7Md

On my machine, your code prints two outputs and then:

Code: Select all

Program received signal SIGSEGV, Segmentation fault.
0x0000000000400d0d in build_sa (n=23569) at 11107.test.c:46
46                   sa[--c[x[y[i]]]] = y[i];
(gdb) print i
$1 = 23568
(gdb) print y[i]
$2 = 23559
(gdb) print x[y[i]]
$3 = 13289
(gdb) print c[x[y[i]]]
$4 = 103576934
Check input and AC output for thousands of problems on uDebug!
Obaid
New poster
Posts: 2
Joined: Thu May 22, 2014 4:01 pm

Re: 11107 - Life Forms

Post by Obaid »

Life Forms has failed with verdict Runtime error.

This means that the execution of your program didn't finish properly. Remember to always terminate your code with the exit code 0.

Anyone know?? Please help me...
thankss
Obaid
New poster
Posts: 2
Joined: Thu May 22, 2014 4:01 pm

Re: 11107 - Life Forms

Post by Obaid »

Life Forms has failed with verdict Runtime error.

This means that the execution of your program didn't finish properly. Remember to always terminate your code with the exit code 0.

Anyone know?? Please help me...
tell me the error please,, :(
thankss
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 11107 - Life Forms

Post by brianfry713 »

Check input and AC output for thousands of problems on uDebug!
anacharsis
Learning poster
Posts: 69
Joined: Mon Feb 09, 2015 1:56 am

Re: 11107 - Life Forms

Post by anacharsis »

Does anyone have any critical input for this one?
I've passed all of the sample input in this thread, and a whole host of others that I've generated myself.
But I still can't get accepted...
Post Reply

Return to “Volume 111 (11100-11199)”