12047 | 2024-11-26 13:08:19 | TortelliniJr | Gyorsolvasó-verseny | cpp17 | Wrong answer 0/100 | 39ms | 548 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 | 320 KiB | ||||
5 | Wrong answer | 1ms | 320 KiB | ||||
6 | Wrong answer | 1ms | 320 KiB | ||||
7 | Wrong answer | 1ms | 320 KiB | ||||
8 | Wrong answer | 1ms | 320 KiB | ||||
9 | Wrong answer | 1ms | 508 KiB | ||||
10 | Wrong answer | 1ms | 380 KiB | ||||
11 | Wrong answer | 1ms | 320 KiB | ||||
12 | Wrong answer | 1ms | 508 KiB | ||||
subtask3 | 0/40 | ||||||
13 | Wrong answer | 1ms | 320 KiB | ||||
14 | Wrong answer | 1ms | 320 KiB | ||||
15 | Wrong answer | 1ms | 320 KiB | ||||
16 | Wrong answer | 1ms | 320 KiB | ||||
17 | Wrong answer | 1ms | 320 KiB | ||||
18 | Wrong answer | 1ms | 516 KiB | ||||
19 | Wrong answer | 1ms | 508 KiB | ||||
20 | Wrong answer | 2ms | 320 KiB | ||||
21 | Wrong answer | 1ms | 320 KiB | ||||
subtask4 | 0/50 | ||||||
22 | Wrong answer | 1ms | 320 KiB | ||||
23 | Wrong answer | 2ms | 408 KiB | ||||
24 | Wrong answer | 14ms | 400 KiB | ||||
25 | Wrong answer | 32ms | 404 KiB | ||||
26 | Wrong answer | 17ms | 548 KiB | ||||
27 | Wrong answer | 34ms | 408 KiB | ||||
28 | Wrong answer | 29ms | 396 KiB | ||||
29 | Wrong answer | 6ms | 320 KiB | ||||
30 | Wrong answer | 39ms | 400 KiB | ||||
31 | Wrong answer | 35ms | 404 KiB |