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

    竞赛

    • CSP-J/S
    • 蓝桥杯

    考级

    • GESP
    • CPA
    • 电子学会考级
登录
注册
题目详情提交记录(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

    ༺ཌༀ`§☯末影之路☯§′ༀད༻

    8月全勤卷王时间刺客空间掌握者秩序白银枚举·枚举小能手模拟·模拟练习生
    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点赞
暂无数据

提交答案之后,这里将显示提交结果~

首页