Task: | Lumimyrsky |
Sender: | iraaz |
Submission time: | 2023-11-01 13:27:26 +0200 |
Language: | C++ (C++11) |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.00 s | details |
#2 | WRONG ANSWER | 0.00 s | details |
#3 | WRONG ANSWER | 0.00 s | details |
#4 | WRONG ANSWER | 0.00 s | details |
#5 | WRONG ANSWER | 0.00 s | details |
#6 | WRONG ANSWER | 0.00 s | details |
#7 | WRONG ANSWER | 0.00 s | details |
#8 | WRONG ANSWER | 0.00 s | details |
#9 | WRONG ANSWER | 0.00 s | details |
#10 | WRONG ANSWER | 0.00 s | details |
#11 | WRONG ANSWER | 0.00 s | details |
Code
#include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int cliff = 0; int x = 0; int last = 0; int smallest_cliff_num = 1; int smallest_cliff_size = 0; int i = 0; while ( cin >> x ) { cout << x << ", " << last << endl; if (cin.peek() == '\n') { if (cliff < smallest_cliff_size) { smallest_cliff_num = i; smallest_cliff_size = cliff; } cliff = 0; continue; } if (x > last) { cliff += x - last; } last = x; i++; } cout << smallest_cliff_num; }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
0 0 1 1 1 2 2 2 1 0 0 1 2 3 2 2 3 0 1 1 |
correct output |
---|
1 |
user output |
---|
0, 0 0, 0 1, 0 1, 1 1, 1 ... Truncated |
Test 2
Verdict: WRONG ANSWER
input |
---|
1 1 1 1 1 1 1 1 0 1 1 0 0 0 1 0 1 0 0 0 |
correct output |
---|
1 |
user output |
---|
1, 0 1, 1 1, 1 1, 1 1, 1 ... Truncated |
Test 3
Verdict: WRONG ANSWER
input |
---|
1 2 2 2 0 0 0 2 0 0 0 1 0 1 1 2 1 2 1 2 |
correct output |
---|
1 |
user output |
---|
1, 0 2, 1 2, 2 2, 2 0, 2 ... Truncated |
Test 4
Verdict: WRONG ANSWER
input |
---|
4 2 0 10 6 10 4 5 4 3 3 1 2 7 6 1 3 5 2 6 |
correct output |
---|
2 |
user output |
---|
4, 0 2, 4 0, 2 10, 0 6, 10 ... Truncated |
Test 5
Verdict: WRONG ANSWER
input |
---|
6 0 7 9 3 1 5 6 9 4 9 0 1 0 2 2 0 1 4 7 |
correct output |
---|
2 |
user output |
---|
6, 0 0, 6 7, 0 9, 7 3, 9 ... Truncated |
Test 6
Verdict: WRONG ANSWER
input |
---|
10 9 6 1 10 9 7 6 7 6 2 1 10 2 0 7 2 9 4 6 |
correct output |
---|
1 |
user output |
---|
10, 0 9, 10 6, 9 1, 6 10, 1 ... Truncated |
Test 7
Verdict: WRONG ANSWER
input |
---|
22 5 87 83 20 36 92 98 49 9 61 40 77 35 52 49 29 100 18 81 |
correct output |
---|
1 |
user output |
---|
22, 0 5, 22 87, 5 83, 87 20, 83 ... Truncated |
Test 8
Verdict: WRONG ANSWER
input |
---|
90 95 33 21 82 6 4 37 10 99 60 10 53 61 42 53 33 48 62 83 |
correct output |
---|
2 |
user output |
---|
90, 0 95, 90 33, 95 21, 33 82, 21 ... Truncated |
Test 9
Verdict: WRONG ANSWER
input |
---|
7 22 78 32 44 98 73 46 98 31 54 26 50 8 7 42 27 1 50 53 |
correct output |
---|
2 |
user output |
---|
7, 0 22, 7 78, 22 32, 78 44, 32 ... Truncated |
Test 10
Verdict: WRONG ANSWER
input |
---|
88 1 97 24 87 38 53 82 23 42 1 61 43 77 40 40 52 88 48 93 |
correct output |
---|
2 |
user output |
---|
88, 0 1, 88 97, 1 24, 97 87, 24 ... Truncated |
Test 11
Verdict: WRONG ANSWER
input |
---|
1 36 50 50 50 0 13 31 14 1 22 88 42 13 25 13 8 39 34 49 |
correct output |
---|
1 |
user output |
---|
1, 0 36, 1 50, 36 50, 50 50, 50 ... Truncated |