68952023-12-19 14:57:16barmi3Decimáliacpp17Wrong answer 0/1006ms5264 KiB
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    int n,ossz=0,x;
    cin>>n;
    int d[n];
    for(int i=0;i<n;i++)
        cin>>d[i];
    for(int i=0;i<n;i++)
        ossz+=d[i]*pow(10,i);
    x=ossz/pow(10,n-1);
    cout<<x*pow(10,n-1);
    return 0;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Accepted3ms1940 KiB
2Accepted3ms2188 KiB
3Wrong answer3ms2392 KiB
subtask20/25
4Accepted3ms2644 KiB
5Wrong answer3ms2692 KiB
6Wrong answer3ms2640 KiB
7Wrong answer3ms2644 KiB
8Wrong answer3ms2668 KiB
subtask30/26
9Wrong answer3ms2744 KiB
10Wrong answer3ms2868 KiB
11Wrong answer3ms3080 KiB
12Wrong answer3ms3352 KiB
13Wrong answer3ms3308 KiB
14Wrong answer3ms3340 KiB
15Wrong answer3ms3452 KiB
16Wrong answer3ms3688 KiB
subtask40/19
17Wrong answer3ms3896 KiB
18Wrong answer3ms4016 KiB
19Wrong answer3ms4128 KiB
20Wrong answer3ms4320 KiB
subtask50/30
21Wrong answer6ms5020 KiB
22Wrong answer6ms5148 KiB
23Wrong answer4ms5136 KiB
24Wrong answer6ms5120 KiB
25Wrong answer6ms5128 KiB
26Wrong answer6ms5264 KiB
27Wrong answer4ms5236 KiB
28Wrong answer3ms4712 KiB