12049 | 2024-11-26 13:25:13 | TortelliniJr | Csokiosztás 2 | cpp17 | Wrong answer 0/100 | 2ms | 572 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;
}
Subtask | Sum | Test | Verdict | Time | Memory | ||
---|---|---|---|---|---|---|---|
subtask1 | 0/0 | ||||||
1 | Wrong answer | 1ms | 320 KiB | ||||
2 | Wrong answer | 1ms | 508 KiB | ||||
subtask2 | 0/30 | ||||||
3 | Wrong answer | 1ms | 320 KiB | ||||
4 | Wrong answer | 1ms | 320 KiB | ||||
5 | Wrong answer | 1ms | 348 KiB | ||||
6 | Wrong answer | 1ms | 320 KiB | ||||
7 | Wrong answer | 1ms | 320 KiB | ||||
8 | Wrong answer | 1ms | 320 KiB | ||||
9 | Wrong answer | 1ms | 516 KiB | ||||
10 | Wrong answer | 1ms | 320 KiB | ||||
11 | Wrong answer | 1ms | 320 KiB | ||||
12 | Wrong answer | 1ms | 320 KiB | ||||
13 | Wrong answer | 1ms | 572 KiB | ||||
14 | Wrong answer | 1ms | 320 KiB | ||||
subtask3 | 0/70 | ||||||
15 | Wrong answer | 2ms | 512 KiB | ||||
16 | Wrong answer | 2ms | 320 KiB | ||||
17 | Wrong answer | 2ms | 320 KiB | ||||
18 | Wrong answer | 2ms | 320 KiB | ||||
19 | Wrong answer | 1ms | 320 KiB | ||||
20 | Wrong answer | 1ms | 320 KiB | ||||
21 | Wrong answer | 1ms | 320 KiB | ||||
22 | Wrong answer | 1ms | 320 KiB | ||||
23 | Wrong answer | 1ms | 508 KiB | ||||
24 | Wrong answer | 1ms | 320 KiB | ||||
25 | Wrong answer | 1ms | 320 KiB | ||||
26 | Wrong answer | 1ms | 320 KiB |