5 solutions

  • 0
    @ 2026-6-26 19:47:58
    #include <iostream>
    int main() {
        int s, v;
        scanf("%d%d", &s, &v);
    
        int need = (s + v - 1) / v + 10; 
        int total = 8 * 60 - need;       
        int h = total / 60;
        int m = total % 60;
    
        if (m < 0) h--, m += 60;         
        if (h < 0) h += 24;
    
        printf("%02d:%02d\n", h, m);
        return 0;
    }
    

    Information

    ID
    1331
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    6
    Tags
    (None)
    # Submissions
    189
    Accepted
    65
    Uploaded By