#include "jumps.h"
#include <vector>
using namespace std;
typedef vector<int> vi;
int max(int a, int b) { return a > b ? a : b; }
void init(int n, vi hh) {
}
int minimum_jumps(int i1, int j1, int i2, int j2) {
return i1 > j2 ? -1 : max(i2 - j1, 0);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Correct |
104 ms |
1404 KB |
Output is correct |
4 |
Correct |
933 ms |
1820 KB |
Output is correct |
5 |
Correct |
942 ms |
928 KB |
Output is correct |
6 |
Correct |
1092 ms |
1820 KB |
Output is correct |
7 |
Correct |
671 ms |
1324 KB |
Output is correct |
8 |
Correct |
924 ms |
1728 KB |
Output is correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
200 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
200 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
200 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
200 KB |
Output is correct |
2 |
Incorrect |
0 ms |
200 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
200 KB |
Output is correct |
2 |
Incorrect |
0 ms |
200 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
0 ms |
200 KB |
Output is correct |
2 |
Correct |
0 ms |
200 KB |
Output is correct |
3 |
Correct |
104 ms |
1404 KB |
Output is correct |
4 |
Correct |
933 ms |
1820 KB |
Output is correct |
5 |
Correct |
942 ms |
928 KB |
Output is correct |
6 |
Correct |
1092 ms |
1820 KB |
Output is correct |
7 |
Correct |
671 ms |
1324 KB |
Output is correct |
8 |
Correct |
924 ms |
1728 KB |
Output is correct |
9 |
Incorrect |
1 ms |
200 KB |
Output isn't correct |
10 |
Halted |
0 ms |
0 KB |
- |