Basecamp
    Accueil
    Problèmes
    Concours
    Cours
    Classement
    Messages
    Store
    Discord
elliotalders0n
Se connecter
Shota
elliotalders0n
Avancé
Georgia
Georgia
Rejoint le 28 sept. 2024
Réalisations (52)
Hello WorldEasy StartEolymp Cup ParticipantExplorerStudent
Vue d'ensembleÉvaluationRéalisations

Évaluation
1222
Problèmes8
Soumissions11
sept.
oct.
nov.
déc.
2021
févr.
mars
avr.
mai
juin
juil.
août
sept.
oct.
nov.
déc.
2022
févr.
mars
avr.
mai
juin
juil.
août
sept.
oct.
nov.
déc.
2023
févr.
mars
avr.
mai
juin
juil.
août
sept.
oct.
nov.
déc.
2024
févr.
mars
avr.
mai
juin
juil.
août
sept.
oct.
nov.
déc.
2025
févr.
mars
avr.
mai
juin
juil.
août
sept.
oct.
nov.
déc.
2026
févr.
mars
avr.
mai
juin
juil.
elliotalders0n earned achievement Studentil y a 27 jours
elliotalders0n earned achievement Exploreril y a 28 jours
elliotalders0n a résolu un problème caché à la tentative 5il y a 2 ans
elliotalders0n a résolu un problème caché à la tentative 3il y a 2 ans
elliotalders0n a laissé un commentaire dans une discussionil y a 2 ans

I think the provided test case is incorrect. Let n be the "palindrome level" counter:

865 is not a palindrome so 865 + 568 = 1433 (n = 1)

1433 is not a palindrome so 1433 + 3314 = 7474 (n = 2).

And this is where the program stops in the test case. But 7474 is obviously not a palindrome either.If we repeat the operation a third time we get: 7474 + 4747 = 12221 which IS a palindrome. Therefore, n = 3 is the answer.Am I missing something?

elliotalders0n a résolu un problème caché à la tentative 3il y a 2 ans
elliotalders0n a résolu un problème caché à la première tentativeil y a 2 ans
elliotalders0n a résolu un problème caché à la première tentativeil y a 2 ans
elliotalders0n a laissé un commentaire dans une discussionil y a 2 ans

The English-language version of the problem description is quite confusing in my opinion

elliotalders0n a résolu un problème caché à la tentative 3il y a 2 ans
elliotalders0n a résolu un problème caché à la première tentativeil y a 2 ans
elliotalders0n a résolu un problème caché à la première tentativeil y a 2 ans
elliotalders0n a rejoint le concours Eolymp Cup #2il y a 2 ans