21994 分钟计算

分钟计算

https://ac.nowcoder.com/acm/problem/21994

#include<bits/stdc++.h>
int main()
{
    int a, b, c, d, e, f;
    std::cin>>a>>b>>c>>d;
    e=c-a;
    f=d-b+60*e;
    std::cout<<f;
}

如果会忘记using namespace std;就用std::cin和std::cout吧

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务