Search found 4 matches

by Falldog
Wed Jul 28, 2004 4:41 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116609

Bug! wrote:I've submitted your code and change your mlongime=2147483647 (using long) or mlongime=2147483648 (unsigned long). And I got AC. I prefered if u change int into long... And U'll get ac... Good Luck....
thank you very much!
i got a AC
thanks~~~
^_^
by Falldog
Wed Jul 28, 2004 4:30 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116609

Bug! wrote:I've submitted your code and change your mlongime=2147483647 (using long) or mlongime=2147483648 (unsigned long). And I got AC. I prefered if u change int into long... And U'll get ac... Good Luck....
thank you very much!
i got a AC
thanks~~~
^_^
by Falldog
Wed Jul 14, 2004 3:21 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116609

Bug! wrote:I think u should change ur limit
minTime=99999 -> minTime=2147483648
Good Luck...
Andre
still can't....>"<
by Falldog
Tue Jul 13, 2004 3:54 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 116609

102 WA!!!

[cpp]
#include<iostream>
#include<string>
using namespace std;

int BlockCount(char * color,int *Block){
int time=0;
for(int x=0 ; x<9 ; x+=3){
if( color[x/3] == 'B' ){
time += Block[x+1] ;
time += Block[x+2] ;
}
if( color[x/3] == 'G' ){
time += Block[x] ;
time += Block[x+2] ;
}
if ...

Go to advanced search