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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情题解(0)讨论(0)提交记录(0)
  • 炯炯定制代码

    n = int(input()) res = str(2**n) l=len(res) if l<=3: print(res) else: res = res[l-3:l] print(res)

    userId_undefined

    神

    18阅读
    3回复
    1点赞
  • wuyijion

    n = int(input()) res = str(2**n) l=len(res) if l<=3: print(res) else: res = res[l-3:l] print(res)

    userId_undefined

    吴(回关)

    出道萌新时间刺客时空双修者空间掌握者枚举·枚举小能手字符串·魔法使
    10阅读
    0回复
    1点赞
  • 可以吗

    #include<iostream> using namespace std; int main(){ int n,m=1; cin>>n; for(int i=0;i<n;i++){ m*=2; m%=1000; } if(n>=10){ printf("%03d",m); }else{ cout<<m; } return 0; }

    userId_undefined

    金杰錱

    时间刺客空间掌握者倔强青铜字符串·魔法使循环·循环打卡人数组·数组操作员
    2阅读
    0回复
    1点赞
  • 题解

    #include<bits/stdc++.h> using namespace std; int main(){ int a,b=1; cin>>a; if(a<=6){ for(int i=1;i<=a;i++){ b*=2; } cout<<b; return 0; } for(int i=1;i<=a;i++){ b*=2; b=b%1000; } printf("%03d",b); return 0; }

    userId_undefined

    LS_YZY

    题解仙人出道萌新时空双修者模拟·模拟练习生倔强青铜快乐小狗
    2阅读
    0回复
    0点赞
首页