top1编程
← 返回题目
题解

【入门】小明的游泳时间

1 条题解

  • 0
    @ 2026-7-28 22:09:26
    #include<iostream> 
    using namespace std;
    int main(){
    	int a,b,c,d,e,f,time;
    	cin>>a>>b>>c>>d;
    	time=(c*60+d)-(a*60+b);
    	e=time/60;
    	f=time%60;
    	cout<<e<<" "<<f; 
    	return 0;
    }
    
    • 1