68722023-12-19 13:12:17kbotiDecimáliacpp17Wrong answer 51/10083ms4616 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
1Accepted3ms1876 KiB
2Accepted3ms2124 KiB
3Accepted3ms2328 KiB
subtask225/25
4Accepted3ms2488 KiB
5Accepted3ms2700 KiB
6Accepted3ms2956 KiB
7Accepted3ms3196 KiB
8Accepted3ms3408 KiB
subtask326/26
9Accepted3ms3500 KiB
10Accepted3ms3456 KiB
11Accepted3ms3460 KiB
12Accepted3ms3460 KiB
13Accepted3ms3548 KiB
14Accepted3ms3424 KiB
15Accepted3ms3572 KiB
16Accepted3ms3780 KiB
subtask40/19
17Wrong answer3ms3772 KiB
18Wrong answer3ms3740 KiB
19Wrong answer4ms3900 KiB
20Wrong answer3ms3888 KiB
subtask50/30
21Wrong answer82ms4140 KiB
22Wrong answer83ms4284 KiB
23Wrong answer82ms4108 KiB
24Wrong answer82ms4116 KiB
25Wrong answer83ms4252 KiB
26Wrong answer82ms4616 KiB
27Wrong answer50ms4528 KiB
28Accepted3ms4608 KiB