根据小学学过的行程问题,结果分别是 和 。
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,t; cin>>a>>b>>t; cout<<(a+b)*t<<" "<<(a-b)*t; return 0; }
暂无评论