120492024-11-26 13:25:13TortelliniJrCsokiosztás 2cpp17Wrong answer 0/1002ms572 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 answer1ms348 KiB
6Wrong answer1ms320 KiB
7Wrong answer1ms320 KiB
8Wrong answer1ms320 KiB
9Wrong answer1ms516 KiB
10Wrong answer1ms320 KiB
11Wrong answer1ms320 KiB
12Wrong answer1ms320 KiB
13Wrong answer1ms572 KiB
14Wrong answer1ms320 KiB
subtask30/70
15Wrong answer2ms512 KiB
16Wrong answer2ms320 KiB
17Wrong answer2ms320 KiB
18Wrong answer2ms320 KiB
19Wrong answer1ms320 KiB
20Wrong answer1ms320 KiB
21Wrong answer1ms320 KiB
22Wrong answer1ms320 KiB
23Wrong answer1ms508 KiB
24Wrong answer1ms320 KiB
25Wrong answer1ms320 KiB
26Wrong answer1ms320 KiB