记录详情

Time Exceeded

foo.c: In function 'main':
foo.c:5:30: warning: unused variable 'flag' [-Wunused-variable]
  int i,n,w,a[300005],j,num=0,flag=0;
                              ^~~~
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&w);
  ^~~~~~~~~~~~~~
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c:10:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);//a[i]里是价格
   ^~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 256.0 KiB
#2 Accepted 1ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 1ms 256.0 KiB
#5 Accepted 1ms 256.0 KiB
#6 Wrong Answer Read {0}, expect {1}. ["4152","4153"] 131ms 312.0 KiB
#7 Wrong Answer Read {0}, expect {1}. ["9849","9850"] 826ms 392.0 KiB
#8 Wrong Answer Read {0}, expect {1}. ["9859","9863"] 796ms 388.0 KiB
#9 Time Exceeded ≥1392ms ≥384.0 KiB
#10 Time Exceeded ≥1504ms ≥412.0 KiB

信息

递交者
类型
递交
题目
P1163 纪念品分组
语言
C
递交时间
2021-01-25 14:56:51
评测时间
2021-01-25 14:56:51
评测机
分数
50
总耗时
≥4656ms
峰值内存
≥412.0 KiB