#include <iostream>
#include <cmath>
using namespace std;
int main()
{
unsigned long long 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<<(long long int)v;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1748 KiB | ||||
2 | Accepted | 3ms | 1908 KiB | ||||
3 | Accepted | 3ms | 2156 KiB | ||||
subtask2 | 25/25 | ||||||
4 | Accepted | 3ms | 2336 KiB | ||||
5 | Accepted | 3ms | 2548 KiB | ||||
6 | Accepted | 3ms | 2764 KiB | ||||
7 | Accepted | 3ms | 3000 KiB | ||||
8 | Accepted | 3ms | 3244 KiB | ||||
subtask3 | 26/26 | ||||||
9 | Accepted | 3ms | 3448 KiB | ||||
10 | Accepted | 3ms | 3556 KiB | ||||
11 | Accepted | 3ms | 3804 KiB | ||||
12 | Accepted | 3ms | 3888 KiB | ||||
13 | Accepted | 3ms | 3988 KiB | ||||
14 | Accepted | 3ms | 4100 KiB | ||||
15 | Accepted | 3ms | 4044 KiB | ||||
16 | Accepted | 3ms | 4044 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 4108 KiB | ||||
18 | Wrong answer | 3ms | 4104 KiB | ||||
19 | Wrong answer | 3ms | 4252 KiB | ||||
20 | Wrong answer | 4ms | 4364 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 79ms | 4552 KiB | ||||
22 | Wrong answer | 79ms | 4632 KiB | ||||
23 | Wrong answer | 79ms | 4632 KiB | ||||
24 | Wrong answer | 79ms | 4664 KiB | ||||
25 | Wrong answer | 79ms | 4788 KiB | ||||
26 | Wrong answer | 79ms | 4908 KiB | ||||
27 | Wrong answer | 52ms | 4924 KiB | ||||
28 | Accepted | 3ms | 4920 KiB |