80分,help
查看原帖
80分,help
1221432
a13968943778楼主2024/6/16 21:14

记录
die码:

#include<bits/stdc++.h>
using namespace std;
struct t_{
	int h,m,s; 
}a,b;
int T(t_ j){
	return j.s+j.m*60+j.h*60*60;//转成秒数 
}
int v;
int main(){
	scanf("%d:%d:%d",&a.h,&a.m,&a.s);
	scanf("%d:%d:%d",&b.h,&b.m,&b.s);
	cin>>v;
//	cout<<T(a)<<"\n"<<T(b)<<"\n";
	cout<<(T(b)-T(a))*v;
	return 0;
}
2024/6/16 21:14
加载中...