竞赛
考级
☆𝑬-𝑳𝑨𝑹☆
#include <iostream> using namespace std; int reverseNumber(int n) { int reversed = 0; while(n != 0) { int digit = n % 10; reversed = reversed * 10 + digit; n /= 10; } return reversed; } int main() { int N; cin >> N; }
智慧达达(1)
#include <iostream> using namespace std; int main(){ int n, u; cin >> n; while(n){ u *= 10; u += n % 10; n /= 10; } cout << u; }
残城碎梦
N = int(input()) a = N < 0 if a: N = -N b = str(N):-1 b = b.lstrip('0') if not b: c = 0 else: c = int(b) if a: c = -c print(c)
ruo'zi
#include <iostream> using namespace std; int main(){ int n; cin>>n; int a=0; while(n!=0){ a=a*10+n%10; n/=10; } cout<<a; return 0; }
AAAWA批发王总
周JIN文
李伙子ia
༺ཌༀFLASH
SZT****9178
共49条
提交答案之后,这里将显示提交结果~