#37725: c++


aidenlin766909@gmail.com (aiden lin)

School : No School
ID : 245101
IP address : [1.163.104.115]
Last Login :
2024-07-28 19:30:56
e976. Will You Make it? -- HP CodeWars2019改編 | From: [1.163.158.104] | Post Date : 2023-10-02 21:07

#include <iostream>

using namespace std;
int main() 
{
     int h, m, s;
    while( cin >> h >> m >> s) 
    {
        if (h*s>= m)
        {
            cout<<h<<" "<<m<<" "<<s<<". I will make it!""\n"; 
        } 
        else 
        {
            cout<<h<<" "<<m<<" "<<s<<". I will be late!""\n";
        }
    }
}

 
ZeroJudge Forum