ICPC 2024 vòng Quốc gia - D: Dune

View as PDF

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

Please read the guidelines before commenting.



  • -6
    LA_NTTANH  commented on Dec. 20, 2024, 12:08 a.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -5
    LA_NTTANH  commented on Dec. 20, 2024, 12:08 a.m.

    This comment is hidden due to too much negative feedback. Show it anyway.


  • -2
    doanhdung2k11  commented on Nov. 27, 2024, 1:27 p.m.

    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; }