acgo题库
  • 首页
  • 题库
  • 题单
  • 竞赛
  • 讨论
  • 排行
  • 团队
  • 备赛专区

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 保证对Python

    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)

    userId_undefined

    181****0302

    倔强青铜
    0阅读
    0回复
    0点赞
  • 题解

    #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; }

    userId_undefined

    AAAWA批发王总

    倔强青铜
    0阅读
    0回复
    0点赞
  • 题解

    AC #include<bits/stdc++.h> #include<bits/stdc++.h> using namespace std; int main(){ int a,b=0,count=0; cin>>a; while(true){ b=a%10; count=count*10+b; a/=10; if(a==0){ break; } } cout<<count; return 0; }

    userId_undefined

    敔禾

    倔强青铜
    0阅读
    0回复
    0点赞

共23条

  • 1
  • 2
20条/页
跳至页
首页