文章
19
粉丝
21
获赞
5
访问
19.0k
# include <bits/stdc++.h>
using namespace std;
string cal(int c){
int k = c;
if (c == 0) return "0";
string ans;
while (k){
ans += (k % 10) + '0';
k /= 10;
}
string res;
for (int i = 0; i < ans.size(); ++i){
res += ans[i];
if (i % 3 == 2 && i != ans.size() - 1){
res += ",";
}
}
reverse(res.begin(),res.end());
return res;
}
int main (void){
int a,b;
cin >> a >> b;
...
登录后发布评论
暂无评论,来抢沙发