2 条题解

  • 3
    @ 2024-5-5 15:33:54

    不要抄袭,点个赞吧

    #include <iostream>
    using namespace std;
    int main()
    {
        int a,b,c,d,t1,t2,t3;
        cin >> a >> b >> c >> d;
        t1 = (c - a)*60;
        t2 = d - b;
        t3 = t1 + t2;
        cout << t3;
    }
    
    • 2
      @ 2024-4-26 23:50:37
      #include <iostream>
      using namespace std;
      int main()
      {
          int a,b,c,d;
          cin>>a;
          cin>>b;
          cin>>c;
          cin>>d;
          if (a==c)
              cout<<d-b;
          else
              cout<<(c-a-1)*60+d+(60-b);
          return 0;
      }
      
      • 1

      信息

      ID
      727
      时间
      1000ms
      内存
      128MiB
      难度
      3
      标签
      递交数
      609
      已通过
      351
      上传者