#include <iostream>
#include "cmath"
using namespace std;
int main() {
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 | 2064 KiB | ||||
3 | Wrong answer | 3ms | 2312 KiB | ||||
subtask2 | 25/25 | ||||||
4 | Accepted | 3ms | 2528 KiB | ||||
5 | Accepted | 3ms | 2732 KiB | ||||
6 | Accepted | 3ms | 2852 KiB | ||||
7 | Accepted | 3ms | 2972 KiB | ||||
8 | Accepted | 3ms | 3080 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Wrong answer | 3ms | 3212 KiB | ||||
10 | Wrong answer | 3ms | 3252 KiB | ||||
11 | Wrong answer | 3ms | 3252 KiB | ||||
12 | Wrong answer | 3ms | 3464 KiB | ||||
13 | Wrong answer | 3ms | 3708 KiB | ||||
14 | Wrong answer | 3ms | 3680 KiB | ||||
15 | Wrong answer | 3ms | 3648 KiB | ||||
16 | Wrong answer | 3ms | 3772 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 3888 KiB | ||||
18 | Wrong answer | 3ms | 3988 KiB | ||||
19 | Wrong answer | 3ms | 4064 KiB | ||||
20 | Wrong answer | 3ms | 4192 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 6ms | 4320 KiB | ||||
22 | Wrong answer | 6ms | 4392 KiB | ||||
23 | Wrong answer | 6ms | 4504 KiB | ||||
24 | Wrong answer | 6ms | 4512 KiB | ||||
25 | Wrong answer | 4ms | 4520 KiB | ||||
26 | Wrong answer | 6ms | 4776 KiB | ||||
27 | Wrong answer | 4ms | 4800 KiB | ||||
28 | Wrong answer | 3ms | 4860 KiB |