#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int n,osszeg=0,d;
cin>>n;
for(int i=1;i<=n;i++)
{
cin>>d;
if(d!=0)
osszeg=osszeg+(d*pow(10,i-1));
if(d==0)
osszeg=osszeg+0;
}
for(int i=0;i<18;i++)
{
if(osszeg/(pow(10,i))>=10)
{
osszeg=osszeg/(pow(10,i+1));
osszeg=osszeg*(pow(10,i+1));
}
}
cout<<osszeg;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1876 KiB | ||||
2 | Accepted | 3ms | 2276 KiB | ||||
3 | Wrong answer | 3ms | 2160 KiB | ||||
subtask2 | 25/25 | ||||||
4 | Accepted | 3ms | 2332 KiB | ||||
5 | Accepted | 3ms | 2544 KiB | ||||
6 | Accepted | 3ms | 2684 KiB | ||||
7 | Accepted | 3ms | 2892 KiB | ||||
8 | Accepted | 3ms | 2720 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Wrong answer | 3ms | 2960 KiB | ||||
10 | Wrong answer | 3ms | 3212 KiB | ||||
11 | Wrong answer | 3ms | 3272 KiB | ||||
12 | Wrong answer | 3ms | 3404 KiB | ||||
13 | Wrong answer | 3ms | 3416 KiB | ||||
14 | Wrong answer | 3ms | 3348 KiB | ||||
15 | Wrong answer | 3ms | 3464 KiB | ||||
16 | Wrong answer | 3ms | 3476 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 3544 KiB | ||||
18 | Wrong answer | 3ms | 3548 KiB | ||||
19 | Wrong answer | 3ms | 3576 KiB | ||||
20 | Wrong answer | 3ms | 3564 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 6ms | 3580 KiB | ||||
22 | Wrong answer | 6ms | 3548 KiB | ||||
23 | Wrong answer | 6ms | 3552 KiB | ||||
24 | Wrong answer | 6ms | 3548 KiB | ||||
25 | Wrong answer | 6ms | 3548 KiB | ||||
26 | Wrong answer | 6ms | 3544 KiB | ||||
27 | Wrong answer | 4ms | 3664 KiB | ||||
28 | Wrong answer | 3ms | 3544 KiB |