Submit solution
Points:
0.20
Time limit:
1.0s
Memory limit:
512M
Input:
stdin
Output:
stdout
Problem source:
Problem type
Allowed languages
C, C++, Go, Java, Kotlin, Pascal, PyPy, Python, Rust, Scratch
In case the statement didn't load correctly, you can download the statement here: Statement
Sample Input 1
6 10 120 110
90 100 110 120 130 140
Sample Output 1
GOAL
Sample Input 2
8 10 0 10
10 4 -2 -8 -1 5 10 15
Sample Output 2
NO GOAL
Sample Input 3
1 1 2 3
1
Sample Output 3
GOAL
Comments
This comment is hidden due to too much negative feedback. Show it anyway.