/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:6:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
  scanf("%d%d",&c,&n);
                    ^
/in/foo.cc:6:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long int*' [-Wformat=]
/in/foo.cc:7:37: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long int*' [-Wformat=]
  for (i=1;i<=n;i++) scanf("%d",&v[i]);
                                     ^
/in/foo.cc:10:20: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long int' [-Wformat=]
  printf("%d",c-f[c]);
                    ^
# 状态 耗时 内存占用
#1 Accepted 5ms 488.0 KiB
#2 Accepted 3ms 464.0 KiB
#3 Accepted 3ms 468.0 KiB
#4 Accepted 4ms 480.0 KiB
#5 Wrong Answer 4ms 492.0 KiB

信息

递交者
类型
递交
题目
P1133 装箱问题
语言
C++
递交时间
2018-04-15 17:28:05
评测时间
2018-04-15 17:28:05
评测机
分数
40
总耗时
21ms
峰值内存
492.0 KiB