120472024-11-26 13:08:19TortelliniJrGyorsolvasó-versenycpp17Wrong answer 0/10039ms548 KiB
#include <fstream>
#include <iostream>
#include <vector>

using namespace std;

int main() {

    int N, n;
    cin >> N;
    int m = -1;
    for (int i = 0; i < N; i++) {
        cin >> n;
        if (n < m && n != -1)
        {
            m << n;
        }
        else if (n == -1)
        {
            m << n;
        }
    }
    cout << m << endl;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer1ms320 KiB
2Wrong answer1ms320 KiB
subtask20/10
3Wrong answer1ms320 KiB
4Wrong answer1ms320 KiB
5Wrong answer1ms320 KiB
6Wrong answer1ms320 KiB
7Wrong answer1ms320 KiB
8Wrong answer1ms320 KiB
9Wrong answer1ms508 KiB
10Wrong answer1ms380 KiB
11Wrong answer1ms320 KiB
12Wrong answer1ms508 KiB
subtask30/40
13Wrong answer1ms320 KiB
14Wrong answer1ms320 KiB
15Wrong answer1ms320 KiB
16Wrong answer1ms320 KiB
17Wrong answer1ms320 KiB
18Wrong answer1ms516 KiB
19Wrong answer1ms508 KiB
20Wrong answer2ms320 KiB
21Wrong answer1ms320 KiB
subtask40/50
22Wrong answer1ms320 KiB
23Wrong answer2ms408 KiB
24Wrong answer14ms400 KiB
25Wrong answer32ms404 KiB
26Wrong answer17ms548 KiB
27Wrong answer34ms408 KiB
28Wrong answer29ms396 KiB
29Wrong answer6ms320 KiB
30Wrong answer39ms400 KiB
31Wrong answer35ms404 KiB