#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<<(unsigned long long int)v;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1876 KiB | ||||
2 | Accepted | 3ms | 2068 KiB | ||||
3 | Accepted | 3ms | 2148 KiB | ||||
subtask2 | 25/25 | ||||||
4 | Accepted | 3ms | 2280 KiB | ||||
5 | Accepted | 3ms | 2352 KiB | ||||
6 | Accepted | 3ms | 2632 KiB | ||||
7 | Accepted | 3ms | 3044 KiB | ||||
8 | Accepted | 3ms | 3076 KiB | ||||
subtask3 | 26/26 | ||||||
9 | Accepted | 3ms | 3456 KiB | ||||
10 | Accepted | 3ms | 3580 KiB | ||||
11 | Accepted | 3ms | 3696 KiB | ||||
12 | Accepted | 3ms | 3612 KiB | ||||
13 | Accepted | 3ms | 3652 KiB | ||||
14 | Accepted | 3ms | 3544 KiB | ||||
15 | Accepted | 3ms | 3724 KiB | ||||
16 | Accepted | 3ms | 3840 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 4ms | 3832 KiB | ||||
18 | Wrong answer | 3ms | 3808 KiB | ||||
19 | Wrong answer | 3ms | 3940 KiB | ||||
20 | Wrong answer | 3ms | 4172 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 75ms | 4420 KiB | ||||
22 | Wrong answer | 75ms | 4468 KiB | ||||
23 | Wrong answer | 75ms | 4416 KiB | ||||
24 | Wrong answer | 75ms | 4420 KiB | ||||
25 | Wrong answer | 83ms | 4540 KiB | ||||
26 | Wrong answer | 75ms | 4448 KiB | ||||
27 | Wrong answer | 46ms | 4432 KiB | ||||
28 | Accepted | 3ms | 4424 KiB |