Search found 1 match

by xopht
Mon Apr 17, 2006 10:12 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 117773

102 - WA

Could you please tell me what problem is on my code?

#include <iostream>
#include <string>

using namespace std;

int take( int n, string* str, int* b, int sum )
{
switch( n )
{
case 1:
*str = "BGC";
return sum - b[ 0 ] - b[ 4 ] - b[ 8 ];
break;
case 2:
*str = "BCG";
return sum - b[ 0 ...

Go to advanced search