#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int be, db, szor=1, ossz=0, szj=0;
double v, ossz2=0, s=1;
cin>>db;
for (int i=1;i<=db;i++)
{
cin>>be;
ossz=ossz+be*szor;
szor=szor*10;
}
ossz2=ossz;
while (ossz != 0)
{
ossz = ossz/10;
szj++;
}
for (int j=1;j<szj;j++)
{
s=s*10;
}
v=ossz2/s;
v=floor(v);
v=v*s;
cout<<v;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1812 KiB | ||||
2 | Accepted | 3ms | 1980 KiB | ||||
3 | Wrong answer | 3ms | 2212 KiB | ||||
subtask2 | 0/25 | ||||||
4 | Accepted | 3ms | 2300 KiB | ||||
5 | Wrong answer | 3ms | 2396 KiB | ||||
6 | Wrong answer | 3ms | 2628 KiB | ||||
7 | Wrong answer | 3ms | 2764 KiB | ||||
8 | Wrong answer | 3ms | 2908 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Wrong answer | 3ms | 3036 KiB | ||||
10 | Wrong answer | 3ms | 3268 KiB | ||||
11 | Wrong answer | 3ms | 3288 KiB | ||||
12 | Wrong answer | 3ms | 3512 KiB | ||||
13 | Wrong answer | 3ms | 3632 KiB | ||||
14 | Wrong answer | 3ms | 3624 KiB | ||||
15 | Wrong answer | 3ms | 3584 KiB | ||||
16 | Wrong answer | 3ms | 3572 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 3684 KiB | ||||
18 | Wrong answer | 3ms | 3956 KiB | ||||
19 | Wrong answer | 3ms | 4048 KiB | ||||
20 | Wrong answer | 3ms | 4156 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 4ms | 4156 KiB | ||||
22 | Wrong answer | 4ms | 4224 KiB | ||||
23 | Wrong answer | 3ms | 4220 KiB | ||||
24 | Wrong answer | 3ms | 4220 KiB | ||||
25 | Wrong answer | 3ms | 4336 KiB | ||||
26 | Wrong answer | 3ms | 4364 KiB | ||||
27 | Wrong answer | 3ms | 4340 KiB | ||||
28 | Wrong answer | 3ms | 4220 KiB |