68702023-12-19 13:11:13kbotiDecimáliacpp17Wrong answer 25/1006ms4860 KiB
#include <iostream>
#include "cmath"

using namespace std;
int main() {
    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
2Accepted3ms2064 KiB
3Wrong answer3ms2312 KiB
subtask225/25
4Accepted3ms2528 KiB
5Accepted3ms2732 KiB
6Accepted3ms2852 KiB
7Accepted3ms2972 KiB
8Accepted3ms3080 KiB
subtask30/26
9Wrong answer3ms3212 KiB
10Wrong answer3ms3252 KiB
11Wrong answer3ms3252 KiB
12Wrong answer3ms3464 KiB
13Wrong answer3ms3708 KiB
14Wrong answer3ms3680 KiB
15Wrong answer3ms3648 KiB
16Wrong answer3ms3772 KiB
subtask40/19
17Wrong answer3ms3888 KiB
18Wrong answer3ms3988 KiB
19Wrong answer3ms4064 KiB
20Wrong answer3ms4192 KiB
subtask50/30
21Wrong answer6ms4320 KiB
22Wrong answer6ms4392 KiB
23Wrong answer6ms4504 KiB
24Wrong answer6ms4512 KiB
25Wrong answer4ms4520 KiB
26Wrong answer6ms4776 KiB
27Wrong answer4ms4800 KiB
28Wrong answer3ms4860 KiB