logo AlgoBeat OnlineJudge
登录 注册

[DOSOI] 航速计算 官方题解

作者: Steven1356  ·  发布于 2026-08-19 21:40:19  ·  最后修改于 2026-08-20 2:48:19
已通过
审核员:UnratedCheater Bug · 2026-08-20 2:48:19

根据小学学过的行程问题,结果分别是 和 。

#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;
}

暂无评论

登录 后即可评论。