记录详情

Wrong Answer

/in/foo.c: In function 'main':
/in/foo.c:7:15: warning: implicit declaration of function 'pow' [-Wimplicit-function-declaration]
  int ans=(int)pow(k+1,n)/(10e9+7);
               ^~~
/in/foo.c:7:15: warning: incompatible implicit declaration of built-in function 'pow'
/in/foo.c:7:15: note: include '<math.h>' or provide a declaration of 'pow'
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 204.0 KiB

代码

#include <stdio.h>
#include <stdlib.h>
int main(void)
{
	int n,k;
	scanf("%d%d",&n,&k);
	int ans=(int)pow(k+1,n)/(10e9+7);
	printf("%d",ans);
}

信息

递交者
类型
自测
题目
P1005 hitwh 2019 新生赛 F Ramen and his faculty
语言
C
递交时间
2020-12-20 17:43:52
评测时间
2020-12-20 17:43:52
评测机
分数
0
总耗时
1ms
峰值内存
204.0 KiB