3600 - 求积I

求出10个2连乘的积并输出。

题目输入

题目输出

1024

输入/输出样例

题目输入

no input needed

题目输出

1024

C语言解答

#include<stdio.h>

int main()
{
    int s=1;
    
    for(int i=1;i<=10;i++){
        s=s*2;
    }
    
    printf("%d",s);

    return 0;
}

C++解答

#include<bits/stdc++.h>
using namespace std;
int main()
{
	
	cout<<pow(2,10);
 } 

时间限制 1 秒
内存限制 128 MB
讨论 统计
上一题 下一题