/ TYWZ /

记录详情

Runtime Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:16:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;++i)
              ~^~~
/in/foo.cc:18:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;++i){
              ~^~~
/in/foo.cc:19:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int q=0;q<=cost[i]-1;++q){
               ~^~~~~~~~~~~
/in/foo.cc:22:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int q=cost[i];q<=money;++q){
                     ~^~~~~~~
/in/foo.cc:30:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<=n;++i)
              ~^~~
/in/foo.cc:32:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=1;i<=n;++i){
              ~^~~
/in/foo.cc:33:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int q=0;q<=worth[i]-1;++q){
               ~^~~~~~~~~~~~
/in/foo.cc:36:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int q=worth[i];q<=ans;++q){
                      ~^~~~~
# 状态 耗时 内存占用
#1 Wrong Answer 225ms 73.848 MiB
#2 Wrong Answer 54ms 69.223 MiB
#3 Wrong Answer 39ms 69.078 MiB
#4 Wrong Answer 35ms 69.078 MiB
#5 Runtime Error 828ms 80.684 MiB
#6 Wrong Answer 12ms 28.824 MiB
#7 Wrong Answer 132ms 57.312 MiB
#8 Wrong Answer 35ms 69.062 MiB
#9 Wrong Answer 11ms 32.512 MiB
#10 Wrong Answer 13ms 34.789 MiB

信息

递交者
类型
递交
题目
Basic Knapsack
语言
C++
递交时间
2019-01-30 23:08:20
评测时间
2019-01-30 23:08:20
评测机
分数
0
总耗时
1387ms
峰值内存
80.684 MiB