35832023-03-01 09:10:42Error42Decimáliacpp17Wrong answer 0/1004ms4828 KiB
#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";
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1828 KiB
2Accepted3ms2020 KiB
3Accepted3ms2232 KiB
subtask20/25
4Wrong answer3ms2572 KiB
5Wrong answer3ms2672 KiB
6Wrong answer3ms2804 KiB
7Wrong answer3ms2916 KiB
8Wrong answer3ms3108 KiB
subtask30/26
9Wrong answer3ms3216 KiB
10Wrong answer3ms3296 KiB
11Wrong answer3ms3400 KiB
12Wrong answer3ms3272 KiB
13Wrong answer3ms3548 KiB
14Accepted3ms3552 KiB
15Wrong answer3ms3480 KiB
16Wrong answer3ms3852 KiB
subtask40/19
17Wrong answer3ms3688 KiB
18Wrong answer3ms3696 KiB
19Wrong answer3ms3708 KiB
20Wrong answer3ms3688 KiB
subtask50/30
21Wrong answer4ms4160 KiB
22Wrong answer4ms4176 KiB
23Wrong answer4ms4164 KiB
24Wrong answer4ms4296 KiB
25Wrong answer4ms4456 KiB
26Wrong answer4ms4564 KiB
27Wrong answer4ms4828 KiB
28Wrong answer3ms4540 KiB