/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:17:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   17 |  scanf("%d",&n);
      |  ~~~~~^~~~~~~~~
foo.cc:18:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   18 |  scanf("%d",&a);
      |  ~~~~~^~~~~~~~~
foo.cc:22:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   22 |   scanf("%d",&a);
      |   ~~~~~^~~~~~~~~
foo.cc:40:8: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
   40 |  cout<<ans;
      |        ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 512.0 KiB
#2 Wrong Answer Read 1892620048, expect 103743099. 5ms 384.0 KiB
#3 Accepted 5ms 384.0 KiB
#4 Wrong Answer Read 1164107488, expect 134121678. 4ms 512.0 KiB
#5 Accepted 4ms 384.0 KiB
#6 Wrong Answer Read 137035824, expect 134216147. 14ms 768.0 KiB
#7 Wrong Answer Read 378865296, expect 134217637. 17ms 948.0 KiB
#8 Accepted 14ms 1020.0 KiB
#9 Accepted 14ms 1.211 MiB
#10 Wrong Answer Read 154569744, expect 134215049. 15ms 1.25 MiB

信息

递交者
类型
递交
题目
P1926 紫色的手链
语言
C++
递交时间
2022-01-26 17:17:24
评测时间
2022-01-26 17:17:24
评测机
分数
50
总耗时
102ms
峰值内存
1.25 MiB