Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
130198 黄枳润 x的n次方 C++ Wrong Answer 1 MS 280 KB 433 2025-09-08 20:03:10

Tests(3/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; long g(long x,long y){ int sum=1; for(int i=1;i<=y;i++){ sum*=x; } return sum; } int main(){ long a,c; cin>>a>>c; cout<<g(a,c); return 0; }


Run Info:

------Input------
-2 49
------Answer-----
-562949953421312
------Your output-----
0