Wrong Answer

foo.cc: In function 'int main()':
foo.cc:33:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   33 |  scanf("%d",&t);
      |  ~~~~~^~~~~~~~~
foo.cc:36:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   36 |   scanf("%d %d %d %d",&a,&b,&c,&k);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc: In function 'int KSC(int, int, int)':
foo.cc:28:9: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
   28 |  return ans;
      |         ^~~
foo.cc: In function 'int main()':
foo.cc:39:38: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
   39 |    printf("%d\n",(KSC(b-a,k-1,200907)+a)%200907);
      |                  ~~~~~~~~~~~~~~~~~~~~^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Wrong Answer Read 39723, expect 3003. 2ms 512.0 KiB

信息

递交者
类型
自测
题目
「一本通 6.1 例 1」序列的第 k 个数
语言
C++
递交时间
2022-01-02 16:03:15
评测时间
2022-01-02 16:03:15
评测机
分数
10
总耗时
7ms
峰值内存
512.0 KiB