#include <iostream>
#include <vector>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int a;
cin >> a;
int cur = 0;
string s = "";
for (size_t i = 0; i < a; i++)
{
cur/=10;
int b;
cin >> b;
cur+=b;
//cout << cur << "\n";
}
s+=(cur+'0');
for (size_t i = 0; i < a-1; i++)
{
s+='0';
}
cout << s << "\n";
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1828 KiB | ||||
2 | Accepted | 3ms | 2020 KiB | ||||
3 | Accepted | 3ms | 2232 KiB | ||||
subtask2 | 0/25 | ||||||
4 | Wrong answer | 3ms | 2572 KiB | ||||
5 | Wrong answer | 3ms | 2672 KiB | ||||
6 | Wrong answer | 3ms | 2804 KiB | ||||
7 | Wrong answer | 3ms | 2916 KiB | ||||
8 | Wrong answer | 3ms | 3108 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Wrong answer | 3ms | 3216 KiB | ||||
10 | Wrong answer | 3ms | 3296 KiB | ||||
11 | Wrong answer | 3ms | 3400 KiB | ||||
12 | Wrong answer | 3ms | 3272 KiB | ||||
13 | Wrong answer | 3ms | 3548 KiB | ||||
14 | Accepted | 3ms | 3552 KiB | ||||
15 | Wrong answer | 3ms | 3480 KiB | ||||
16 | Wrong answer | 3ms | 3852 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 3688 KiB | ||||
18 | Wrong answer | 3ms | 3696 KiB | ||||
19 | Wrong answer | 3ms | 3708 KiB | ||||
20 | Wrong answer | 3ms | 3688 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 4ms | 4160 KiB | ||||
22 | Wrong answer | 4ms | 4176 KiB | ||||
23 | Wrong answer | 4ms | 4164 KiB | ||||
24 | Wrong answer | 4ms | 4296 KiB | ||||
25 | Wrong answer | 4ms | 4456 KiB | ||||
26 | Wrong answer | 4ms | 4564 KiB | ||||
27 | Wrong answer | 4ms | 4828 KiB | ||||
28 | Wrong answer | 3ms | 4540 KiB |