#include <iostream>
#include <cmath>
using namespace std;
int main(){
int N,osz=0,l=0,db=0,a;
cin>>N;
int d[N];
for (int i=1;i<=N;i++)
{
cin>>d[i];
osz+=d[i]*pow(10,i-1);
}
a=osz;
while (a>10)
{
if (a>10)
{a=a/10;
db++;}
}
cout<<a*pow(10,db);
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1940 KiB | ||||
2 | Accepted | 3ms | 2128 KiB | ||||
3 | Wrong answer | 3ms | 2380 KiB | ||||
subtask2 | 0/25 | ||||||
4 | Accepted | 3ms | 2556 KiB | ||||
5 | Wrong answer | 3ms | 2796 KiB | ||||
6 | Wrong answer | 3ms | 2924 KiB | ||||
7 | Wrong answer | 3ms | 3028 KiB | ||||
8 | Wrong answer | 3ms | 3092 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Wrong answer | 3ms | 3348 KiB | ||||
10 | Wrong answer | 3ms | 3304 KiB | ||||
11 | Wrong answer | 3ms | 3520 KiB | ||||
12 | Wrong answer | 3ms | 3616 KiB | ||||
13 | Wrong answer | 3ms | 3700 KiB | ||||
14 | Wrong answer | 3ms | 3820 KiB | ||||
15 | Wrong answer | 3ms | 3704 KiB | ||||
16 | Wrong answer | 3ms | 3940 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 4040 KiB | ||||
18 | Wrong answer | 3ms | 4128 KiB | ||||
19 | Wrong answer | 3ms | 4124 KiB | ||||
20 | Wrong answer | 3ms | 4128 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 6ms | 4892 KiB | ||||
22 | Wrong answer | 6ms | 4896 KiB | ||||
23 | Wrong answer | 6ms | 4900 KiB | ||||
24 | Wrong answer | 6ms | 4900 KiB | ||||
25 | Wrong answer | 6ms | 4896 KiB | ||||
26 | Wrong answer | 6ms | 5000 KiB | ||||
27 | Wrong answer | 4ms | 4764 KiB | ||||
28 | Wrong answer | 3ms | 4224 KiB |