yzsy25071621 @ 2023-02-27 21:11:19
请原谅我这个弱智蒟蒻罢
#include <algorithm>
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
int main()
{
int n;
cin>>n;
if(n<0)
{
cout<<"-";
}
n=abs(n);
string s=to_string(n);
reverse(s.begin(),s.end());
int i=0;
while(i<s.size()-1 && s[i]=='0')
{
i++;
}
while(i<s.size())
{
cout<<s[i];
i++;
}
return 0;
}
by ZM____ML @ 2023-02-27 21:27:07
求问,不是AC了吗(
by ZM____ML @ 2023-02-27 21:27:15
@yzsy25071621
by yzsy25071621 @ 2023-02-27 21:32:25
我这一直70啊
by ZM____ML @ 2023-02-27 21:33:56
@yzsy25071621 20:59:12的提交(
by yzsy25071621 @ 2023-02-27 21:41:01
对不起,和另一道题看岔了...我个弱智