题解 | #CSimplemathproblem#
CSimplemathproblem
https://ac.nowcoder.com/acm/contest/19304/E
#include<iostream>
using namespace std;
int main()
{
long x=0;
long y=0;
cin>>x>>y;
if(y%x==0) cout<<x+y<<endl;
else cout<<y-x<<endl;
}
CSimplemathproblem
https://ac.nowcoder.com/acm/contest/19304/E
#include<iostream>
using namespace std;
int main()
{
long x=0;
long y=0;
cin>>x>>y;
if(y%x==0) cout<<x+y<<endl;
else cout<<y-x<<endl;
}
相关推荐
Java抽象带篮子:你根本没说到关键点,找到工作只是当牛马的第一步,真正吃苦的绝对是后面的日常工作,上岸我看换成下海更准确,找到好工作值得开心但不至于这么开心,切记互联网每个人都有倒计时😋