记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d",&n,&k);
  ^~~~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Wrong Answer Read {0}, expect {1}. ["0","9"] 1ms 256.0 KiB

代码

#include <stdio.h>
#include <stdlib.h>
#include <math.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:44:25
评测时间
2020-12-20 17:44:25
评测机
分数
0
总耗时
1ms
峰值内存
256.0 KiB