#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";
}
for (size_t i = 0; i < a-1; i++)
{
s+='0';
}
cout << cur << s << "\n";
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Accepted | 3ms | 1704 KiB | ||||
2 | Accepted | 3ms | 1868 KiB | ||||
3 | Accepted | 3ms | 2244 KiB | ||||
subtask2 | 0/25 | ||||||
4 | Wrong answer | 3ms | 2236 KiB | ||||
5 | Wrong answer | 3ms | 2320 KiB | ||||
6 | Wrong answer | 3ms | 2548 KiB | ||||
7 | Wrong answer | 3ms | 2780 KiB | ||||
8 | Wrong answer | 3ms | 2900 KiB | ||||
subtask3 | 0/26 | ||||||
9 | Wrong answer | 3ms | 3096 KiB | ||||
10 | Wrong answer | 3ms | 3168 KiB | ||||
11 | Wrong answer | 3ms | 3156 KiB | ||||
12 | Wrong answer | 2ms | 3160 KiB | ||||
13 | Wrong answer | 3ms | 3252 KiB | ||||
14 | Accepted | 2ms | 3256 KiB | ||||
15 | Wrong answer | 3ms | 3480 KiB | ||||
16 | Wrong answer | 3ms | 3520 KiB | ||||
subtask4 | 0/19 | ||||||
17 | Wrong answer | 3ms | 3740 KiB | ||||
18 | Wrong answer | 3ms | 3820 KiB | ||||
19 | Wrong answer | 2ms | 3800 KiB | ||||
20 | Wrong answer | 3ms | 3904 KiB | ||||
subtask5 | 0/30 | ||||||
21 | Wrong answer | 4ms | 4368 KiB | ||||
22 | Wrong answer | 4ms | 4616 KiB | ||||
23 | Wrong answer | 4ms | 4484 KiB | ||||
24 | Wrong answer | 4ms | 4440 KiB | ||||
25 | Wrong answer | 4ms | 4868 KiB | ||||
26 | Wrong answer | 4ms | 4708 KiB | ||||
27 | Wrong answer | 4ms | 5016 KiB | ||||
28 | Wrong answer | 3ms | 4896 KiB |