/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:68:8: warning: unused variable 'y' [-Wunused-variable]
   68 |  int x,y;
      |        ^
foo.cc:57:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   57 |  scanf("%d%d",&n,&g);
      |  ~~~~~^~~~~~~~~~~~~~
foo.cc:61:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   61 |   scanf("%s",c);
      |   ~~~~~^~~~~~~~
foo.cc:56:9: warning: iteration 20 invokes undefined behavior [-Waggressive-loop-optimizations]
   56 |   vis[i]=1;
      |   ~~~~~~^~
foo.cc:55:15: note: within this loop
   55 |  for(int i=0;i<=20;i++)
      |              ~^~~~
foo.cc:70:3: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
   70 |   if((a[1]|a[i])==x)
      |   ^~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Wrong Answer Read 1061109567, expect 2. 2ms 384.0 KiB
#4 Wrong Answer Read 1061109567, expect 2. 2ms 384.0 KiB
#5 Wrong Answer Standard answer longer than user output. 2ms 384.0 KiB
#6 Time Exceeded ≥1100ms ≥384.0 KiB
#7 Time Exceeded ≥1100ms ≥896.0 KiB
#8 Time Exceeded ≥1100ms ≥896.0 KiB
#9 Time Exceeded ≥1101ms ≥384.0 KiB
#10 Wrong Answer Read 1061109567, expect 11. 22ms 896.0 KiB

信息

递交者
类型
递交
题目
P1563 zgx的神奇机器
语言
C++
递交时间
2022-03-19 23:40:05
评测时间
2022-03-19 23:40:05
评测机
分数
2
总耗时
≥4438ms
峰值内存
≥896.0 KiB