QOJ.ac

QOJ

Limite de temps : 2 s Limite de mémoire : 1024 MB

#23940. Liczba cyfr

Statistiques

Dane są $2$ liczby całkowite $A, B$.

Oblicz, ile cyfr ma suma liczb $A$ i $B$ zapisana w systemie dziesiętnym.

Wejście

Wejście podawane jest w następującym formacie:

$$ \begin{aligned} &A \\ &B \end{aligned} $$

Wyjście

Wypisz, ile cyfr ma suma liczb $A$ i $B$ zapisana w systemie dziesiętnym, pomijając jednostkę (cyfry).

Nie wypisuj niczego poza odpowiedzią. (Nie wypisuj również komunikatów proszących o podanie danych itp.)

Odnośnie formatu odpowiedzi możesz skorzystać z zadań próbnych i ich przykładowych rozwiązań.

Ograniczenia

  • $1 \le A \le 499$.
  • $1 \le B \le 499$.
  • Wszystkie wartości na wejściu są liczbami całkowitymi.

Przykład

Wejście 1

3
9

Wyjście 1

2

Uwaga 1

  • Suma liczb $3$ i $9$ wynosi $12$. Ponieważ liczba $12$ jest $2$-cyfrowa, wypisujemy $2$.

Wejście 2

499
499

Wyjście 2

3

Uwaga 2

  • Suma liczb $499$ i $499$ wynosi $998$. Ponieważ liczba $998$ jest $3$-cyfrowa, wypisujemy $3$.

Wejście 3

3
2

Wyjście 3

1

Wejście 4

1
99

Wyjście 4

3

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.