11107 - Life Forms
Moderator: Board moderators
Re: 11107 - Life Forms
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.
Re: 11107 - Life Forms
Code: Select all
delete after AC
Last edited by hpjhc on Sat May 10, 2014 4:57 am, edited 1 time in total.
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 11107 - Life Forms
http://ideone.com/CNU7Md
On my machine, your code prints two outputs and then:
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!
Re: 11107 - Life Forms
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
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
Re: 11107 - Life Forms
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
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,,
![:(](./images/smilies/icon_frown.gif)
thankss
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 11107 - Life Forms
Check input and AC output for thousands of problems on uDebug!
-
- Learning poster
- Posts: 69
- Joined: Mon Feb 09, 2015 1:56 am
Re: 11107 - Life Forms
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...
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...