50fps

P1307 [NOIP2011 普及组] 数字反转

@[WQJ111213](/user/1014410) kkwd ```cpp #include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0), cout.tie(0); int a,b=0; cin>>a; if(a<0){ cout<<"-"; a=abs(a);} if(a==0){ cout<<a; return 0;} else while(a!=0){ b=b*10+a%10; a=a/10; } cout<<b; return 0; } ``` (什么fps啊是pts吧
by FurippuWRY @ 2023-08-26 20:39:34


@[FurippuWRY](/user/993779) 所以我为什么错
by Ac_Code_cn_com @ 2023-08-26 20:42:01


@[WQJ111213](/user/1014410) 0没清干净,比如输入`114514000`,输出`00415411`
by FurippuWRY @ 2023-08-26 20:43:51


|