237022026-01-27 17:59:50AkosVagyokEmborSípálya (55 pont)cpp17Wrong answer 0/5578ms2804 KiB
#include <iostream>
#include <vector>
#include <cmath>
using namespace std;
vector <int> t, aLenyeg, os;
int n, k;
void be() {
    cin >> n >> k;
    t.resize(n + 1);
    os.resize(n + 1);
    aLenyeg.resize(n + 1);
    for (int i = 1; i <= n; i++) {
        cin >> t[i];
        aLenyeg[i] = 0;
    }
}
void nagy() {
    for (int i = k; i <= n; i++) {
        int sum = 0;
        int maxx = t[i];
        int index = i;
        
        aLenyeg[i] = sum;
    }

}

int main()
{
    be();
    nagy();
    int maxx = t[k];
    cout << maxx;
}
SubtaskSumTestVerdictTimeMemory
base0/55
1Wrong answer0/01ms500 KiB
2Wrong answer0/01ms324 KiB
3Wrong answer0/21ms316 KiB
4Wrong answer0/21ms316 KiB
5Wrong answer0/22ms316 KiB
6Wrong answer0/21ms316 KiB
7Wrong answer0/31ms316 KiB
8Wrong answer0/14ms316 KiB
9Wrong answer0/14ms316 KiB
10Wrong answer0/14ms508 KiB
11Wrong answer0/14ms512 KiB
12Wrong answer0/14ms492 KiB
13Wrong answer0/14ms804 KiB
14Wrong answer0/24ms508 KiB
15Wrong answer0/24ms524 KiB
16Wrong answer0/275ms2768 KiB
17Wrong answer0/271ms2612 KiB
18Wrong answer0/271ms2612 KiB
19Wrong answer0/372ms2804 KiB
20Wrong answer0/274ms2612 KiB
21Wrong answer0/271ms2612 KiB
22Wrong answer0/272ms2612 KiB
23Wrong answer0/271ms2624 KiB
24Wrong answer0/278ms2764 KiB
25Wrong answer0/272ms2768 KiB
26Wrong answer0/272ms2612 KiB
27Wrong answer0/271ms2672 KiB
28Wrong answer0/371ms2760 KiB
29Wrong answer0/371ms2804 KiB
30Wrong answer0/371ms2764 KiB