#include <iostream>
#include <cmath>
using namespace std;
int main()
{
long long int n, sum=0;
cin>>n;
int t[n];
for(int i=0; i<n; i++)
{
cin>>t[i];
}
for(int i=0; i<n; i++)
sum=sum+t[i]*pow(10, i);
int x=sum/(pow(10, n-1));
cout<<x;
for(int i=0; i<n-1; i++)
{
cout<<"0";
}
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1872 KiB | ||||
2 | Accepted | 3ms | 2128 KiB | ||||
3 | Accepted | 3ms | 2364 KiB | ||||
subtask2 | 0/25 | ||||||
4 | Wrong answer | 3ms | 2548 KiB | ||||
5 | Wrong answer | 3ms | 2764 KiB | ||||
6 | Wrong answer | 3ms | 2876 KiB | ||||
7 | Wrong answer | 3ms | 3080 KiB | ||||
8 | Wrong answer | 3ms | 3284 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Wrong answer | 3ms | 3256 KiB | ||||
10 | Wrong answer | 3ms | 3496 KiB | ||||
11 | Wrong answer | 3ms | 3840 KiB | ||||
12 | Wrong answer | 3ms | 3860 KiB | ||||
13 | Wrong answer | 3ms | 3896 KiB | ||||
14 | Accepted | 3ms | 3880 KiB | ||||
15 | Wrong answer | 3ms | 3956 KiB | ||||
16 | Wrong answer | 3ms | 3880 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 3812 KiB | ||||
18 | Wrong answer | 3ms | 4056 KiB | ||||
19 | Wrong answer | 3ms | 4060 KiB | ||||
20 | Wrong answer | 3ms | 4024 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 9ms | 4792 KiB | ||||
22 | Wrong answer | 9ms | 4792 KiB | ||||
23 | Wrong answer | 9ms | 4900 KiB | ||||
24 | Wrong answer | 9ms | 5028 KiB | ||||
25 | Wrong answer | 9ms | 5000 KiB | ||||
26 | Wrong answer | 9ms | 5008 KiB | ||||
27 | Wrong answer | 8ms | 4772 KiB | ||||
28 | Wrong answer | 3ms | 4228 KiB |