#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int main()
{
int N,D,osszeg=0,ered,veg;
cin>>N;
for (int i=1; i<=N;i++ )
{
cin>>D;
osszeg=osszeg+(D*((int)pow(10,i-1)));
}
if (osszeg%(N*(int)pow(10,N-1))!=0)
{
ered=osszeg%(N*(int)pow(10,N-1));
veg=osszeg-ered;
cout<<veg;
}
else
cout<<osszeg;
return 0;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 3ms | 1772 KiB | ||||
2 | Wrong answer | 3ms | 1996 KiB | ||||
3 | Wrong answer | 3ms | 2240 KiB | ||||
subtask2 | 0/25 | ||||||
4 | Accepted | 3ms | 2448 KiB | ||||
5 | Runtime error | 3ms | 2732 KiB | ||||
6 | Runtime error | 3ms | 2680 KiB | ||||
7 | Runtime error | 3ms | 2940 KiB | ||||
8 | Runtime error | 3ms | 2900 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Runtime error | 3ms | 3152 KiB | ||||
10 | Runtime error | 3ms | 3360 KiB | ||||
11 | Runtime error | 3ms | 3576 KiB | ||||
12 | Runtime error | 3ms | 3640 KiB | ||||
13 | Runtime error | 3ms | 3532 KiB | ||||
14 | Wrong answer | 3ms | 3692 KiB | ||||
15 | Runtime error | 3ms | 4032 KiB | ||||
16 | Wrong answer | 3ms | 3976 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Runtime error | 3ms | 4064 KiB | ||||
18 | Runtime error | 3ms | 4068 KiB | ||||
19 | Runtime error | 3ms | 4188 KiB | ||||
20 | Runtime error | 3ms | 4192 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Runtime error | 6ms | 4640 KiB | ||||
22 | Runtime error | 6ms | 4248 KiB | ||||
23 | Runtime error | 6ms | 4384 KiB | ||||
24 | Runtime error | 6ms | 4324 KiB | ||||
25 | Runtime error | 6ms | 4580 KiB | ||||
26 | Runtime error | 6ms | 4504 KiB | ||||
27 | Wrong answer | 4ms | 4588 KiB | ||||
28 | Wrong answer | 3ms | 4540 KiB |