71372023-12-31 12:11:46KristófHús sütés (75 pont)cpp17Wrong answer 9/7541ms5104 KiB
#include <iostream>

using namespace std;

int main()
{
    int n;
    cin>>n;
    int volgy[n];
    for(int i=0;i<n;i++){
        cin>>volgy[i];
    }

    int nagy=0;
    int nagysz=0;
    int kicsi=10000000;
    int ered=0;
    int ans=0;

    for(int i=0;i<n;i++){
        volgy[i]=volgy[i]+i;
    }
    for(int i=0;i<n;i++){
        if(nagy<volgy[i]){
            nagy=volgy[i];
        }
    }





        cout<<nagy;



    return 0;
}

SubtaskSumTestVerdictTimeMemory
base9/75
1Wrong answer0/03ms2020 KiB
2Wrong answer0/03ms2160 KiB
3Wrong answer0/019ms2796 KiB
4Accepted3/32ms2432 KiB
5Wrong answer0/33ms2456 KiB
6Wrong answer0/32ms2544 KiB
7Wrong answer0/33ms2672 KiB
8Wrong answer0/43ms2752 KiB
9Wrong answer0/43ms3008 KiB
10Wrong answer0/43ms2968 KiB
11Wrong answer0/43ms3092 KiB
12Wrong answer0/43ms3100 KiB
13Wrong answer0/437ms3904 KiB
14Wrong answer0/437ms3916 KiB
15Wrong answer0/537ms3912 KiB
16Wrong answer0/537ms4028 KiB
17Wrong answer0/537ms4148 KiB
18Wrong answer0/437ms4160 KiB
19Wrong answer0/437ms4216 KiB
20Accepted4/441ms4572 KiB
21Wrong answer0/427ms4508 KiB
22Wrong answer0/235ms4756 KiB
23Accepted2/220ms5104 KiB