97452024-03-06 11:08:48UnluckYDecimáliacpp17Wrong answer 0/1004ms5424 KiB
#include <bits/stdc++.h>

using namespace std;


int main(){

    int n; cin >> n;
    vector<int> v; 


    for (int i = 1; i <= n; i++){
        int a; cin >> a; v.push_back(a);
    }

    //reverse(v.begin(), v.end());

    int mego = v[n-1]; // lehet 0

    for (int i = n-2; i >= 0; i--){
        //cout << n-i-1 << " " << v[i]/10 << endl;
        if (v[i] / 10 >= n-i-1){
            mego += v[i]/10;
            break;
        }
    }

    

    cout << (to_string(mego))+string(n-1, '0');

    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1812 KiB
2Accepted3ms2332 KiB
3Accepted3ms2204 KiB
subtask20/25
4Wrong answer3ms2420 KiB
5Wrong answer2ms2436 KiB
6Wrong answer3ms2572 KiB
7Wrong answer2ms2652 KiB
8Wrong answer3ms2780 KiB
subtask30/26
9Wrong answer3ms2852 KiB
10Wrong answer3ms2856 KiB
11Wrong answer3ms3100 KiB
12Wrong answer3ms3216 KiB
13Wrong answer3ms3224 KiB
14Accepted3ms3300 KiB
15Wrong answer2ms3388 KiB
16Wrong answer3ms3392 KiB
subtask40/19
17Wrong answer3ms3412 KiB
18Wrong answer2ms3420 KiB
19Wrong answer3ms3412 KiB
20Wrong answer3ms3704 KiB
subtask50/30
21Wrong answer4ms4808 KiB
22Wrong answer4ms5200 KiB
23Wrong answer4ms5312 KiB
24Wrong answer4ms5084 KiB
25Wrong answer4ms5116 KiB
26Wrong answer4ms5264 KiB
27Wrong answer4ms5424 KiB
28Wrong answer3ms4180 KiB