Mai intai trebuie sa te autentifici.
Diferente pentru problema/words intre reviziile #3 si #2
Nu exista diferente intre titluri.
Diferente intre continut:
h2. Date de intrare
Theinput file$words.in$containsthe word$W$, astringconsisting of lowercase English letters.
Fişierul de intrare $words.in$ ...
h2. Date de ieşire
Theoutputfile$words.out$ willcontain the zero-basedindexin thedictionarymodulo$10^9+ 7$.
În fişierul de ieşire $words.out$ ...
h2. Restricţii
* $1 ≤ |W| ≤ 10^5$ * For tests worth $20$ points, $1 ≤ |W| ≤ 3$. * For tests worth $20$ more points, $W$ has only 'a' in it. * For tests worth $40$ more points, $1 ≤ |W| ≤ 10^3$.
* $... ≤ ... ≤ ...$
h2. Exemplu table(example). |_. words.in |_. words.out |
| abba | 18980
| This is some text written on multiple lines. | This is another text written on multiple lines.
|
table(example). |_. words.in |_. words.out | | verylongstring | 315607945 |
h3. Explicaţie ...
== include(page="template/taskfooter" task_id="words") ==