记录详情

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}. ["-47483501","969325547"] 1ms 256.0 KiB
#2 Wrong Answer Read {0}, expect {1}. ["-47483501","911662646"] 1ms 376.0 KiB
#3 Wrong Answer Read {0}, expect {1}. ["-47483501","997910374"] 0ms 256.0 KiB
#4 Wrong Answer Read {0}, expect {1}. ["-47483501","671405386"] 0ms 256.0 KiB
#5 Wrong Answer Read {0}, expect {1}. ["-47483501","575089383"] 0ms 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)%(100000007);
	printf("%d",ans);
}

信息

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