logo AlgoBeat OnlineJudge
登录 注册

题解

作者: tyxx040105  ·  发布于 2026-09-24 13:04:08  ·  最后修改于 2026-09-24 19:27:05
已通过
审核员:AlgoBeat 官方账号 · 2026-09-24 19:27:05

直接模拟就行。

#include<bits/stdc++.h>
using namespace std;
int main(){
    int a,b,p,q,m;
    cin>>a>>b>>p>>q>>m;
    cout<<a*p+b*q<<endl<<m-a*p-b*q;
    return 0;
}

暂无评论

登录 后即可评论。