#include <iostream>
#include <cmath>
using namespace std;
int main()
{
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 | 1880 KiB | ||||
2 | Accepted | 3ms | 2112 KiB | ||||
3 | Accepted | 3ms | 2328 KiB | ||||
subtask2 | 25/25 | ||||||
4 | Accepted | 3ms | 2488 KiB | ||||
5 | Accepted | 3ms | 2724 KiB | ||||
6 | Accepted | 3ms | 2788 KiB | ||||
7 | Accepted | 3ms | 2792 KiB | ||||
8 | Accepted | 3ms | 3064 KiB | ||||
subtask3 | 26/26 | ||||||
9 | Accepted | 3ms | 3232 KiB | ||||
10 | Accepted | 3ms | 3244 KiB | ||||
11 | Accepted | 3ms | 3320 KiB | ||||
12 | Accepted | 3ms | 3256 KiB | ||||
13 | Accepted | 3ms | 3448 KiB | ||||
14 | Accepted | 3ms | 3456 KiB | ||||
15 | Accepted | 3ms | 3492 KiB | ||||
16 | Accepted | 3ms | 3468 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 3488 KiB | ||||
18 | Wrong answer | 3ms | 3460 KiB | ||||
19 | Wrong answer | 3ms | 3488 KiB | ||||
20 | Wrong answer | 3ms | 3612 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 75ms | 3460 KiB | ||||
22 | Wrong answer | 75ms | 3464 KiB | ||||
23 | Wrong answer | 75ms | 3460 KiB | ||||
24 | Wrong answer | 75ms | 3456 KiB | ||||
25 | Wrong answer | 75ms | 3456 KiB | ||||
26 | Wrong answer | 75ms | 3580 KiB | ||||
27 | Wrong answer | 46ms | 3464 KiB | ||||
28 | Accepted | 3ms | 3588 KiB |