68492023-12-19 11:32:11TheViktorDecimáliacpp17Wrong answer 0/1006ms5000 KiB
#include <iostream>
#include <cmath>
using namespace std;

int main(){

    int N,osz=0,l=0,db=0,a;
    cin>>N;
    int d[N];
    for (int i=1;i<=N;i++)
    {
        cin>>d[i];
        osz+=d[i]*pow(10,i-1);
    }
    a=osz;
    while (a>10)
    {
        if (a>10)
            {a=a/10;
            db++;}
    }
    cout<<a*pow(10,db);
return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1940 KiB
2Accepted3ms2128 KiB
3Wrong answer3ms2380 KiB
subtask20/25
4Accepted3ms2556 KiB
5Wrong answer3ms2796 KiB
6Wrong answer3ms2924 KiB
7Wrong answer3ms3028 KiB
8Wrong answer3ms3092 KiB
subtask30/26
9Wrong answer3ms3348 KiB
10Wrong answer3ms3304 KiB
11Wrong answer3ms3520 KiB
12Wrong answer3ms3616 KiB
13Wrong answer3ms3700 KiB
14Wrong answer3ms3820 KiB
15Wrong answer3ms3704 KiB
16Wrong answer3ms3940 KiB
subtask40/19
17Wrong answer3ms4040 KiB
18Wrong answer3ms4128 KiB
19Wrong answer3ms4124 KiB
20Wrong answer3ms4128 KiB
subtask50/30
21Wrong answer6ms4892 KiB
22Wrong answer6ms4896 KiB
23Wrong answer6ms4900 KiB
24Wrong answer6ms4900 KiB
25Wrong answer6ms4896 KiB
26Wrong answer6ms5000 KiB
27Wrong answer4ms4764 KiB
28Wrong answer3ms4224 KiB