Diferente pentru problema/wordle intre reviziile #1 si #2

Nu exista diferente intre titluri.

Diferente intre continut:

== include(page="template/taskheader" task_id="wordle") ==
Poveste şi cerinţă...
The new, popular word game Wordle spreads so fast that its contagiousness has reached Luca.
 
For those of you who have not yet heard about it, in Wordle you have to guess a 5-letter word in a limited number of attempts. After each attempt you get to know, for each position, whether your guess had the right letter in the right position, a letter present in the word but not in the right position, or a completely wrong letter.
 
Intrigued by the characteristics of the word game, Luca has decided to create his own more generic version. In this version, one needs to guess an $N$-letter word. Every possible sequence of letters of the English alphabet constitutes a potentially valid guess, but it is guaranteed that the word to guess does not contain the same letter twice.
 
You are in the middle of a game: you already guessed some letters but you still have to figure out some of them, which are indicated in the input with an underscore (_). You wonder: how many words could be a valid solution for the game, given the letters you know?
 
 
h2. Date de intrare
Fişierul de intrare $wordle.in$ ...
The first line of the input file $wordle.in$ contains the only integer $N$. The second line contains $N$ letters $L[i]$: either an uppercase letter of the English alphabet or an underscore.
h2. Date de ieşire
În fişierul de ieşire $wordle.out$ ...
The output file $wordle.out$ contains a single line with an integer: the number of possible solutions.
h2. Restricţii
* $... ≤ ... ≤ ...$
* $3 ≤ N ≤ 6$
* For tests worth $10$ points, $N = 6$ and the number of missing letters is always $1$.
* For tests worth $20$ more points, the number of missing letters is always $1$.
* For tests worth $30$ more points, the number of missing letters is always $1$ or $2$.
 
h2. Exemplu
table(example). |_. wordle.in |_. wordle.out |
| This is some
  text written on
  multiple lines.
| This is another
  text written on
  multiple lines.
| 5
H O U S _
| 22
|
h3. Explicaţie
 
...
table(example). |_. wordle.in |_. wordle.out |
| 3
A _ _
| 600
|
== include(page="template/taskfooter" task_id="wordle") ==

Nu exista diferente intre securitate.

Topicul de forum nu a fost schimbat.