题解 | #2的n次方计算#

2的n次方计算

https://www.nowcoder.com/practice/35a1e8b18658411388bc1672439de1d9

#include <stdio.h>

int main() {
    
    int i = 0;
    scanf("%d",&i);
    int c = 2<<(i-1);
    printf("%d",c);
}

全部评论

相关推荐

挥毫自在:想白嫖你呢
点赞 评论 收藏
分享
牛客吹哨人:哨哥晚点统一更新到黑名单:能救一个是一个!26届毁意向毁约裁员黑名单https://www.nowcoder.com/discuss/1525833
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务