12046 | 2024-11-26 13:07:31 | TortelliniJr | Gyorsolvasó-verseny | cpp17 | Wrong answer 0/100 | 41ms | 560 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 1ms | 320 KiB | ||||
2 | Wrong answer | 1ms | 320 KiB | ||||
subtask2 | 0/10 | ||||||
3 | Wrong answer | 1ms | 320 KiB | ||||
4 | Wrong answer | 1ms | 560 KiB | ||||
5 | Wrong answer | 1ms | 320 KiB | ||||
6 | Wrong answer | 1ms | 332 KiB | ||||
7 | Wrong answer | 1ms | 320 KiB | ||||
8 | Wrong answer | 1ms | 320 KiB | ||||
9 | Wrong answer | 1ms | 320 KiB | ||||
10 | Wrong answer | 1ms | 340 KiB | ||||
11 | Wrong answer | 1ms | 320 KiB | ||||
12 | Wrong answer | 1ms | 320 KiB | ||||
subtask3 | 0/40 | ||||||
13 | Wrong answer | 1ms | 320 KiB | ||||
14 | Wrong answer | 1ms | 320 KiB | ||||
15 | Wrong answer | 1ms | 508 KiB | ||||
16 | Wrong answer | 1ms | 404 KiB | ||||
17 | Wrong answer | 1ms | 320 KiB | ||||
18 | Wrong answer | 1ms | 320 KiB | ||||
19 | Wrong answer | 2ms | 320 KiB | ||||
20 | Wrong answer | 1ms | 500 KiB | ||||
21 | Wrong answer | 1ms | 320 KiB | ||||
subtask4 | 0/50 | ||||||
22 | Wrong answer | 1ms | 320 KiB | ||||
23 | Wrong answer | 2ms | 332 KiB | ||||
24 | Wrong answer | 14ms | 404 KiB | ||||
25 | Wrong answer | 34ms | 508 KiB | ||||
26 | Wrong answer | 18ms | 400 KiB | ||||
27 | Wrong answer | 35ms | 404 KiB | ||||
28 | Wrong answer | 30ms | 404 KiB | ||||
29 | Wrong answer | 6ms | 508 KiB | ||||
30 | Wrong answer | 41ms | 404 KiB | ||||
31 | Wrong answer | 37ms | 320 KiB |