1 solutions

  • 0
    @ 2025-12-3 16:44:25

    C :

    #include <stdio.h>
    #include <math.h>
    int a=0,b=0;
    int main()
    {
        scanf("%d%d",&a,&b);
        long long ch=1;
        for(;a>b;a--)
            ch*=32;
        printf("%d",ch);
        return 0;
    }
    

    C++ :

    #include<bits/stdc++.h>
    using namespace std;
    int a,b,ans=1;
    int main(){
    	cin>>a>>b;
    	for(int i=1;i<=a-b;i++)
    		ans*=32;
    	cout<<ans;
        return 0;
    }
    
    • 1

    Information

    ID
    901
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    10
    Tags
    # Submissions
    2
    Accepted
    2
    Uploaded By