Submit solution
Points:
0.01
Time limit:
1.0s
Memory limit:
512M
Input:
stdin
Output:
stdout
Author:
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
2
3 5 2 6
4 4 4 11
Sample Output 1
Warning Beat
Resting Phase
Comments
This comment is hidden due to too much negative feedback. Show it anyway.
This comment is hidden due to too much negative feedback. Show it anyway.
include <bits/stdc++.h>
using namespace std;
int main() { long long n, a, b, c, d, e, f; cin >> n; while (n--) { cin >> a >> b >> c >> d; e = a + b + c; f = d % e; if (f < a) { cout << "Guiding Beat" << endl; } else if (f < a + b) { cout << "Warning Beat" << endl; } else { cout << "Resting Phase" << endl; } } return 0; }