Exo 1 en cours + gitignore

This commit is contained in:
trochas
2025-12-12 16:44:23 +01:00
parent bf02648bb3
commit 3598e2a56f
2 changed files with 10 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
maven-status/
surefire-reports/
.jqwik-database

View File

@@ -13,6 +13,13 @@ Any natural number between 0 and 3999 can be represented in *roman numerals* usi
4. When a symbol of lower value of appears to the right of a symbol of equal or higher value, all symbol values are added. 4. When a symbol of lower value of appears to the right of a symbol of equal or higher value, all symbol values are added.
5. When a symbols of lower value appears to the left of a symbols of higher value, the lower value is subtracted from the higher value. Only symbols C, X, V can be subtracted. Each symbol can be subtracted only once. The subtracted symbol must be one fifth or one tenth of the larger. 5. When a symbols of lower value appears to the left of a symbols of higher value, the lower value is subtracted from the higher value. Only symbols C, X, V can be subtracted. Each symbol can be subtracted only once. The subtracted symbol must be one fifth or one tenth of the larger.
Ennoncé erroné /!\ :
5. tous les symboles peuvent se faire soustraire par un (seul) autre symbole appartenant à [I,X,C], le symbole doit être la division par 5 ou 10 du symbole soustrait.
Donc seul : IV, IX, XL, XC, CD, CM sont autorisé.
6. Après une soustraction du cas .5, on ne peut plus JAMAIS avoir de symbole avec une valeur >= au symbole courant après. Exemple : IXX -> pas bon
*Examples:* *Examples:*
- 1 = I - 1 = I