120502024-11-26 13:26:19TortelliniJrCsokiosztás 2cpp17Wrong answer 0/1002ms560 KiB
#include <fstream>
#include <iostream>
#include <vector>

using namespace std;

int main() {

    int N;
    cin >> N;
    vector<int> n(N);
    int m = 0;
    for (int i = 0; i < N; i++) {
        cin >> n[i];
    }
    for (int i = 0; i < N; i++)
    {
        if (n[i] < m && m != 0)
        {
            m = n[i];
        }
        else if (m == 0)
        {
            m = n[i];
        }
    }
    cout << m << endl;
}
SubtaskSumTestVerdictTimeMemory
subtask10/0
1Wrong answer1ms320 KiB
2Wrong answer1ms508 KiB
subtask20/30
3Wrong answer1ms320 KiB
4Wrong answer1ms320 KiB
5Wrong answer1ms560 KiB
6Wrong answer1ms320 KiB
7Wrong answer1ms320 KiB
8Wrong answer1ms332 KiB
9Wrong answer1ms320 KiB
10Wrong answer1ms320 KiB
11Wrong answer1ms320 KiB
12Wrong answer2ms320 KiB
13Wrong answer1ms552 KiB
14Wrong answer2ms320 KiB
subtask30/70
15Wrong answer1ms320 KiB
16Wrong answer1ms320 KiB
17Wrong answer1ms320 KiB
18Wrong answer1ms320 KiB
19Wrong answer1ms320 KiB
20Wrong answer1ms352 KiB
21Wrong answer1ms320 KiB
22Wrong answer1ms320 KiB
23Wrong answer1ms320 KiB
24Wrong answer1ms320 KiB
25Wrong answer1ms320 KiB
26Wrong answer1ms320 KiB