Search found 5 matches

by jydy
Sat Apr 27, 2002 4:45 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50143

prob 102

The following is my code but I get WA's please advise, thanks! [c]#include<stdio.h> #define MAX 32767 int main() { int b1,b2,b3; int g1,g2,g3; int c1,c2,c3; int moves[6],min; int i, switcher; while(scanf("%d %d %d %d %d %d %d %d %d",&b1,&g1,&c1,&b2,&g2,&c2,&b3,&g3,&c3)==9) { min=MAX; moves[0]=b1+c1+...
by jydy
Tue Apr 16, 2002 12:37 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 184511

thanks, Adrian!
finally, my first successful submit :)
by jydy
Mon Apr 15, 2002 11:36 am
Forum: Other words
Topic: output and input file names
Replies: 3
Views: 2167

output and input file names

As in problem 100, it requires an input file and an output file.
How should I name them?
like 100.in,100.out?
tks in advance[/c]
by jydy
Sun Apr 14, 2002 3:10 pm
Forum: Other words
Topic: e-mail submittions
Replies: 1
Views: 1517

e-mail submittions

what should be typed in the Subject field?
thanks
by jydy
Sun Apr 07, 2002 8:31 am
Forum: Volume 5 (500-599)
Topic: 568 - Just the Facts
Replies: 39
Views: 16597

568 - Just the Facts

the first non-zero digit of 3125! comes out as a 5 whereas in the sample input it's said to be 2. the following is my code, thank you. #include<stdio.h> void main() { long int tmp=1; //temporary tens and units digit data long int i; long int input,result; scanf("%d",&input); for(i=2;i<=input;i++) { ...

Go to advanced search