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:10: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
   39 |    printf("%d\n",KSC(b-a,k-1,200907)+a);
      |    ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 39723, expect 3003. 3ms 384.0 KiB
#2 Wrong Answer Read 4905914, expect 84146. 2ms 384.0 KiB
#3 Wrong Answer Read 17164320, expect 87225. 2ms 384.0 KiB
#4 Wrong Answer Read 796566, expect 193845. 3ms 384.0 KiB
#5 Wrong Answer Read 400599, expect 199692. 4ms 384.0 KiB
#6 Wrong Answer Read 31884853, expect 141547. 5ms 384.0 KiB
#7 Wrong Answer Read 71305408, expect 184330. 4ms 384.0 KiB
#8 Wrong Answer Read 2332606, expect 122629. 3ms 384.0 KiB
#9 Wrong Answer Read 106169802, expect 90906. 4ms 384.0 KiB
#10 Wrong Answer Read 169097075, expect 134288. 2ms 384.0 KiB

信息

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