120452024-11-26 13:06:15TortelliniJrGyorsolvasó-versenycpp17Wrong answer 0/10041ms608 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;
    return 0;
}
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 answer1ms320 KiB
10Wrong answer1ms320 KiB
11Wrong answer1ms320 KiB
12Wrong answer1ms320 KiB
subtask30/40
13Wrong answer1ms500 KiB
14Wrong answer1ms320 KiB
15Wrong answer1ms320 KiB
16Wrong answer1ms320 KiB
17Wrong answer1ms320 KiB
18Wrong answer1ms508 KiB
19Wrong answer1ms320 KiB
20Wrong answer1ms320 KiB
21Wrong answer1ms320 KiB
subtask40/50
22Wrong answer1ms320 KiB
23Wrong answer2ms320 KiB
24Wrong answer14ms320 KiB
25Wrong answer35ms608 KiB
26Wrong answer18ms404 KiB
27Wrong answer35ms404 KiB
28Wrong answer30ms320 KiB
29Wrong answer6ms320 KiB
30Wrong answer41ms320 KiB
31Wrong answer37ms408 KiB