68742023-12-19 13:15:57TDIDecimáliacpp17Wrong answer 51/10082ms5024 KiB
#include <iostream>
#include "cmath"

using namespace std;
int main() {
    long long int n,k,a=0,e=0,i=1;
    cin>>n;
    for (int j=1; j<=n; j++)
    {
        cin>>k;
        a=a+k*pow(10, j-1);
    }

    while(e==0)
    {
        if (pow(10, i)>a)
        {
            a = a / pow(10, i - 1);
            a = a * pow(10, i - 1);
            e = 1;
        }
        i++;
    }
    cout<<a;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1884 KiB
2Accepted3ms2000 KiB
3Accepted3ms2232 KiB
subtask225/25
4Accepted3ms2448 KiB
5Accepted3ms2536 KiB
6Accepted3ms2620 KiB
7Accepted3ms2748 KiB
8Accepted3ms2956 KiB
subtask326/26
9Accepted3ms3228 KiB
10Accepted3ms3204 KiB
11Accepted3ms3252 KiB
12Accepted3ms3352 KiB
13Accepted3ms3412 KiB
14Accepted3ms3508 KiB
15Accepted3ms3632 KiB
16Accepted3ms3760 KiB
subtask40/19
17Wrong answer3ms3844 KiB
18Wrong answer3ms3972 KiB
19Wrong answer3ms4020 KiB
20Wrong answer3ms4016 KiB
subtask50/30
21Wrong answer82ms4020 KiB
22Wrong answer82ms4268 KiB
23Wrong answer82ms4232 KiB
24Wrong answer82ms4360 KiB
25Wrong answer82ms4572 KiB
26Wrong answer82ms4788 KiB
27Wrong answer52ms4896 KiB
28Accepted3ms5024 KiB