#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 | 1884 KiB | ||||
2 | Accepted | 3ms | 2000 KiB | ||||
3 | Accepted | 3ms | 2232 KiB | ||||
subtask2 | 25/25 | ||||||
4 | Accepted | 3ms | 2448 KiB | ||||
5 | Accepted | 3ms | 2536 KiB | ||||
6 | Accepted | 3ms | 2620 KiB | ||||
7 | Accepted | 3ms | 2748 KiB | ||||
8 | Accepted | 3ms | 2956 KiB | ||||
subtask3 | 26/26 | ||||||
9 | Accepted | 3ms | 3228 KiB | ||||
10 | Accepted | 3ms | 3204 KiB | ||||
11 | Accepted | 3ms | 3252 KiB | ||||
12 | Accepted | 3ms | 3352 KiB | ||||
13 | Accepted | 3ms | 3412 KiB | ||||
14 | Accepted | 3ms | 3508 KiB | ||||
15 | Accepted | 3ms | 3632 KiB | ||||
16 | Accepted | 3ms | 3760 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 3844 KiB | ||||
18 | Wrong answer | 3ms | 3972 KiB | ||||
19 | Wrong answer | 3ms | 4020 KiB | ||||
20 | Wrong answer | 3ms | 4016 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 82ms | 4020 KiB | ||||
22 | Wrong answer | 82ms | 4268 KiB | ||||
23 | Wrong answer | 82ms | 4232 KiB | ||||
24 | Wrong answer | 82ms | 4360 KiB | ||||
25 | Wrong answer | 82ms | 4572 KiB | ||||
26 | Wrong answer | 82ms | 4788 KiB | ||||
27 | Wrong answer | 52ms | 4896 KiB | ||||
28 | Accepted | 3ms | 5024 KiB |