Search found 7 matches

by zerocool
Wed Sep 18, 2002 8:56 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50092

In this problem, the reason why I get WA is "output format".
For example, When we output
123456789
It's may be transformed.
1.2E8
( The answer may be not correct. Just for example )
Unluckily, the output should be 123456789, so, do you get what I mean ?
:wink:
Best Regards
by zerocool
Wed Sep 18, 2002 3:02 am
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 5017

When you start to test your code, it's better to think the bound condition.
For example, In this problem . Do you ever think "13" ? In this problem
The input is 13 <= n < 100. After 13, it's better to think 99.

sample input
13
sample output
1
Best Regards ! :wink:
by zerocool
Tue Sep 10, 2002 4:51 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 36467

Input :
6 8
9 1 9 9 1 1 1 1
1 9 9 1 9 9 9 9
9 9 1 9 9 1 1 1
1 1 9 9 1 9 9 9
9 9 9 1 9 9 9 9
9 9 1 9 9 9 9 9

Output
2 1 6 5 4 3 3 3
8

Try Try ..^_^..I wish this can help you..
by zerocool
Sat May 18, 2002 1:55 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50092

Re: printf

Fresh wrote:Try this, it may help:

[cpp]
#include <stdio.h>
....
....
printf("%s%1.0f\n",c,min);
[/cpp]

-novice :wink:
Thanks. I corrected the ouput format then I get "Accepted"
Thank a lots. :lol:
by zerocool
Fri May 17, 2002 7:54 pm
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50092

Re: NO BUG????

minskcity wrote:I guess you did not try "1000000000 1000000000 1 1 1 1 1 1 1".......
The answer of my program is

BCG 1000000005

Is any bug in it ?
by zerocool
Thu May 16, 2002 9:06 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 50092

102 - Ecological Bin Packing

The following my source code for P.102 [cpp] #include <iostream> using namespace std ; void main() { unsigned long k1=0, data[9]={0} ; char *c ; while ( cin >> data[0] ) { double min=2147483648 , sum=0 ; sum += data[0] ; for( k1=1 ; k1<9 ; k1++ ) { cin >> data[k1] ; sum += data[k1] ; } if ( min >= (...
by zerocool
Wed May 15, 2002 5:43 pm
Forum: Volume 1 (100-199)
Topic: 151 - Power Crisis
Replies: 56
Views: 5017

Try this
input : 13
output : 1[/b][/code][/quote]

Go to advanced search