解题哟哟!ac必过!关注我+点赞哟!
2026-09-04 20:12:05
发布于:浙江
3阅读
0回复
0点赞
#include<iostream>
using namespace std;
int main(){
int t1,t2;
int h1,h2,m1,m2,s1,s2;
cin>>h1>>m1>>s1;
cin>>h2>>m2>>s2;
t1=h1*3600+m1*60+s1;
t2=h2*3600+m2*60+s2;
if(t2>t1)cout<<t2-t1;
else if(t1==t2)cout<<0;
else{
h2+=24;
t2=h2*3600+m2*60+s2;
cout<<t2-t1;
}
}
这里空空如也








有帮助,赞一个