第二题解(懂得都懂)
2025-07-01 18:20:15
发布于:浙江
5阅读
0回复
0点赞
第二题解
#include <iostream>
using namespace std;
int main() {
char a,b,c;
cin>>a>>b>>c;
cout<<c<<" "<<b<<" "<<a;
return 0;
}
通过分位截取三位数的字符串形态并倒叙输出
(不是最优解,但对于普通写法【% /】有了巨大提升)
全部评论 1
d
2025-10-15 来自 浙江
0








有帮助,赞一个