Robespierre managed to find a document which lists the value of Miaurice’s underground business.
It is a long piece of paper on which are written all the integer numbers:
1 2 3 ... 25048
A special solution (named virus) was applied to the paper erasing all the digits “0” from these numbers, living a blank space.
In this way some of the numbers are modified. For example, 860 becomes 86, and 1087 is converted in two distinct numbers: 1 and 87.
The money earned by Miaurice’s gang is the sum of all numbers from the virused paper.
Help Robespierre to find this value.
Example: If on the paper there were initially 11 numbers, the sum will be:
1+2+3+4+5+6+7+8+9+1+11=57.
CUM POT REZOLVA ACEASTA PROBLEMA IN C++ ????
URGENT
Vă mulțumim pentru vizita pe site-ul nostru dedicat Informatică. Ne dorim ca informațiile furnizate să vă fi fost utile. Dacă aveți întrebări sau aveți nevoie de suport suplimentar, nu ezitați să ne contactați. Revenirea dumneavoastră ne bucură, iar pentru acces rapid, adăugați-ne la favorite!