Please note: the language of this site will now be ENGLISH. Please do not use another language since visitors from different countries will participate in training.

Week 10 - Suffix Trie / Array

The tasks for week 10 are as follows:

Week problem: 00760 DNA Sequencing
Weekend problem: 11107 Life Forms
Suggested bonus: 11512 GATTACA

You must submit your solutions on http://uva.onlinejudge.org/

You can browse to these problems from the online judge website by clicking on Browse Problems, Contest Volumes, and then selecting the contest volume as indicated above.

asked Aug 11, 2012 in Tasks by eljakimit

Please post below which of the questions you have been able to finish.

For each task, please let us know how much time you have spent on understanding / coding / debugging.

For each task let us know what the hardest part was. (This can be anything, ranging from not having read the problem to forgetting about a border case, to a semicolon in the wrong spot that screwed up an if-statement...)

1 Answer

0 votes

I'm stuck on the input part of this problem. How do you input the two lines, plus an extra blank line?

This does not work:

while(!cin.eof()){

    cin >> x >> y >> t;
    substring(x,y);
    cout << endl;
}
answered Aug 23, 2012 by willem

You can do this:

string a;
getline(cin, a);

To get input line-by-line

NL: NIO UK: BIO Int: IOI
...