120462024-11-26 13:07:31TortelliniJrGyorsolvasó-versenycpp17Wrong answer 0/10041ms560 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 answer1ms560 KiB
5Wrong answer1ms320 KiB
6Wrong answer1ms332 KiB
7Wrong answer1ms320 KiB
8Wrong answer1ms320 KiB
9Wrong answer1ms320 KiB
10Wrong answer1ms340 KiB
11Wrong answer1ms320 KiB
12Wrong answer1ms320 KiB
subtask30/40
13Wrong answer1ms320 KiB
14Wrong answer1ms320 KiB
15Wrong answer1ms508 KiB
16Wrong answer1ms404 KiB
17Wrong answer1ms320 KiB
18Wrong answer1ms320 KiB
19Wrong answer2ms320 KiB
20Wrong answer1ms500 KiB
21Wrong answer1ms320 KiB
subtask40/50
22Wrong answer1ms320 KiB
23Wrong answer2ms332 KiB
24Wrong answer14ms404 KiB
25Wrong answer34ms508 KiB
26Wrong answer18ms400 KiB
27Wrong answer35ms404 KiB
28Wrong answer30ms404 KiB
29Wrong answer6ms508 KiB
30Wrong answer41ms404 KiB
31Wrong answer37ms320 KiB