#include <iostream>
#include "cmath"
using namespace std;
int main() {
long long int n,k,a=0,e=0,i=1;
cin>>n;
for (int j=1; j<=n; j++)
{
cin>>k;
a=a+k*pow(10, j-1);
}
while(e==0)
{
if (pow(10, i)>a)
{
a = a / pow(10, i - 1);
a = a * pow(10, i - 1);
e = 1;
}
i++;
}
cout<<a;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1876 KiB | ||||
2 | Accepted | 3ms | 2124 KiB | ||||
3 | Accepted | 3ms | 2328 KiB | ||||
subtask2 | 25/25 | ||||||
4 | Accepted | 3ms | 2488 KiB | ||||
5 | Accepted | 3ms | 2700 KiB | ||||
6 | Accepted | 3ms | 2956 KiB | ||||
7 | Accepted | 3ms | 3196 KiB | ||||
8 | Accepted | 3ms | 3408 KiB | ||||
subtask3 | 26/26 | ||||||
9 | Accepted | 3ms | 3500 KiB | ||||
10 | Accepted | 3ms | 3456 KiB | ||||
11 | Accepted | 3ms | 3460 KiB | ||||
12 | Accepted | 3ms | 3460 KiB | ||||
13 | Accepted | 3ms | 3548 KiB | ||||
14 | Accepted | 3ms | 3424 KiB | ||||
15 | Accepted | 3ms | 3572 KiB | ||||
16 | Accepted | 3ms | 3780 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 3772 KiB | ||||
18 | Wrong answer | 3ms | 3740 KiB | ||||
19 | Wrong answer | 4ms | 3900 KiB | ||||
20 | Wrong answer | 3ms | 3888 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 82ms | 4140 KiB | ||||
22 | Wrong answer | 83ms | 4284 KiB | ||||
23 | Wrong answer | 82ms | 4108 KiB | ||||
24 | Wrong answer | 82ms | 4116 KiB | ||||
25 | Wrong answer | 83ms | 4252 KiB | ||||
26 | Wrong answer | 82ms | 4616 KiB | ||||
27 | Wrong answer | 50ms | 4528 KiB | ||||
28 | Accepted | 3ms | 4608 KiB |