35842023-03-01 09:12:13Error42Decimáliacpp17Wrong answer 0/1004ms5016 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";
    }
    for (size_t i = 0; i < a-1; i++)
    {
        s+='0';
    }
    cout << cur << s << "\n";
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1704 KiB
2Accepted3ms1868 KiB
3Accepted3ms2244 KiB
subtask20/25
4Wrong answer3ms2236 KiB
5Wrong answer3ms2320 KiB
6Wrong answer3ms2548 KiB
7Wrong answer3ms2780 KiB
8Wrong answer3ms2900 KiB
subtask30/26
9Wrong answer3ms3096 KiB
10Wrong answer3ms3168 KiB
11Wrong answer3ms3156 KiB
12Wrong answer2ms3160 KiB
13Wrong answer3ms3252 KiB
14Accepted2ms3256 KiB
15Wrong answer3ms3480 KiB
16Wrong answer3ms3520 KiB
subtask40/19
17Wrong answer3ms3740 KiB
18Wrong answer3ms3820 KiB
19Wrong answer2ms3800 KiB
20Wrong answer3ms3904 KiB
subtask50/30
21Wrong answer4ms4368 KiB
22Wrong answer4ms4616 KiB
23Wrong answer4ms4484 KiB
24Wrong answer4ms4440 KiB
25Wrong answer4ms4868 KiB
26Wrong answer4ms4708 KiB
27Wrong answer4ms5016 KiB
28Wrong answer3ms4896 KiB