社区讨论
全WA求助
P1615西游记公司参与者 1已保存回复 0
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 0 条
- 当前快照
- 1 份
- 快照标识符
- @lqgp3qnt
- 此快照首次捕获于
- 2023/12/22 21:56 2 年前
- 此快照最后确认于
- 2023/12/23 09:07 2 年前
CPP
#include<bits/stdc++.h>
using namespace std;
int a;
struct Compfunr{
long long shi,fen,miao;
long long ans;
};
Compfunr operator +(Compfunr &t1,Compfunr &t2){
t1.shi*=3600,t2.shi*=3600;
t2.fen*=60,t1.fen*=60;
t1.miao+=t1.shi+t1.fen;
t2.miao+=t2.shi+t2.fen;
t1.ans=t2.miao-t1.miao;
return t1;
}
int main()
{
Compfunr t1,t2,s;
scanf("%lld:%lld:%lld",&t1.shi,&t1.fen,&t1.miao);
scanf("%lld:%lld:%lld",&t2.shi,&t2.fen,&t2.miao);
cin>>a;
cout<<t1.ans*a<<endl;
return 0;
}
回复
共 0 条回复,欢迎继续交流。
正在加载回复...