173292025-06-27 20:39:1542thebestestDecimáliacpp17Wrong answer 0/100600ms13692 KiB
#include <bits/stdc++.h>
using namespace std;

int main() {
	int N, m, t = 0, p = 0; cin >> N;
    for (int i = 0; i < N; i++) {
        cin >> m;
        m += t;
        t = m / 10;
        if (i == N-1) {
            m %= 10;
            cout << m;
        }
    }
    for (int j = 0; j < N-1+t; j++) {
        cout << "0";
    }
    cout << endl;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted1ms316 KiB
2Accepted1ms316 KiB
3Accepted1ms316 KiB
subtask20/25
4Wrong answer1ms316 KiB
5Wrong answer1ms316 KiB
6Wrong answer1ms316 KiB
7Wrong answer1ms316 KiB
8Wrong answer1ms316 KiB
subtask30/26
9Wrong answer1ms316 KiB
10Wrong answer1ms316 KiB
11Wrong answer1ms328 KiB
12Wrong answer1ms316 KiB
13Time limit exceeded600ms13692 KiB
14Accepted1ms316 KiB
15Accepted1ms500 KiB
16Wrong answer1ms316 KiB
subtask40/19
17Wrong answer1ms316 KiB
18Time limit exceeded580ms13108 KiB
19Time limit exceeded582ms13104 KiB
20Time limit exceeded580ms13244 KiB
subtask50/30
21Wrong answer2ms316 KiB
22Wrong answer2ms316 KiB
23Wrong answer2ms316 KiB
24Wrong answer2ms316 KiB
25Wrong answer2ms316 KiB
26Wrong answer2ms316 KiB
27Wrong answer1ms316 KiB
28Time limit exceeded598ms13508 KiB