5 条题解

  • 3
    @ 2018-11-07 14:53:56
    a=-int(input())*60-int(input())+int(input())*60+int(input())
    print("%d\n%d"%(a/60,a%60))
    

    为什么题目说要用两行print语句??

    • @ 2019-01-15 13:13:45

      前排膜拜大佬_(:з」∠)_

  • 0
    @ 2019-04-25 17:40:47
    a=int(input())
    b=int(input())
    c=int(input())
    d=int(input())
    e=c-a
    f=d-b
    if f<0:
           e=e-1
           f=60+f
           
    print(e)
    print(f)
    
  • 0
    @ 2019-01-15 13:12:52

    e=-int(input())*60-int(input())+int(input())*60+int(input())
    print(e//60)
    print(e-(e//60)*60)

  • 0
    @ 2017-10-28 02:40:57

    a=int(input())
    b=int(input())
    c=int(input())
    d=int(input())
    k=(a*60+b)
    h=(c*60+d)
    g=h-k
    e=g//60
    f=g%60
    print(e)
    print(f)

    野蛮的方法

  • 0
    @ 2017-10-23 12:51:03

    为什么错了
    因为我可爱而针对我么
    #include <iostream>
    #include <iomanip>
    #include <cmath>
    using namespace std;
    int main()
    {
    int a,b,c,d,e,f,g,h,i;
    cin>>a>>b>>e>>f;
    c=a*60;
    d=c+b;
    g=e*60;
    h=g+f;
    i=h-d;
    cout<<i/60<<" "<<i%60<<endl;
    getchar();
    getchar();
    return 0;
    }

  • 1

信息

难度
5
分类
(无)
标签
(无)
递交数
573
已通过
192
通过率
34%
上传者