此题通用题解
2025-07-14 09:09:49
发布于:河北
12阅读
0回复
0点赞
这道题非常简单,只有一种情况,但是万一这道题有输入,直接输出答案的方法就完了。所以建议大家这么写:
#include<bits/stdc++.h>
using namespace std;
int main(){
int a=50,b=43,c=13;
b+=a/3;
c+=a/3;
a/=3;
a+=b/3;
c+=b/3;
b/=3;
a+=c/3;
b+=c/3;
c/=3;
cout<<a<<" "<<b<<" "<<c;
return 0;
}
这里空空如也
有帮助,赞一个