记录详情

Accepted

foo.c: In function 'main':
foo.c:6:29: warning: unused variable 'flag' [-Wunused-variable]
  int i,n,w,a[30000],j,num=0,flag=0;
                             ^~~~
foo.c:7:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&w);
  ^~~~~~~~~~~~~~
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&n);
  ^~~~~~~~~~~~~~
foo.c:11:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&a[i]);//a[i]里是价格
   ^~~~~~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB
#6 Accepted 1ms 256.0 KiB
#7 Accepted 4ms 368.0 KiB
#8 Accepted 4ms 356.0 KiB
#9 Accepted 6ms 388.0 KiB
#10 Accepted 6ms 392.0 KiB

信息

递交者
类型
递交
题目
P1163 纪念品分组
语言
C
递交时间
2021-01-25 15:24:25
评测时间
2021-01-25 15:24:25
评测机
分数
100
总耗时
27ms
峰值内存
392.0 KiB