Search found 24 matches

by Bug!
Tue Aug 10, 2004 3:33 am
Forum: Volume 1 (100-199)
Topic: 122 - Trees on the level
Replies: 103
Views: 10039

122 stil WA

Hi everybody... I try to solve this problem using 2 different way... And both of all get WA.. I don't know why.. Can anybody give me some input... Here's my 1st code (using tree): [c] #include<stdio.h> #include<stdlib.h> #include<string.h> #define MAX 300 char valid; double isi[MAX][MAX]; long top[M...
by Bug!
Tue Aug 03, 2004 9:05 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28440

Hi... I try to changed my algorithm n it can passed TLE.. But Now i've got WA for this prob.. Can u give me any critical i/o ??
Thx a lot..
Andre
by Bug!
Wed Jul 28, 2004 11:23 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28440

I can't use visual C++.... :p
Maybe u can look at my code and see what's wrong with this...
I still confuse why the process need more than 9 s to solve it...

[c]
*code removed*
[/c]

Thx...
Andre
by Bug!
Wed Jul 28, 2004 3:02 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28440

Hi Andrew... I've changed my code n remove qsort, n just insert it into an array.. But still got TLE. :( Here's my new pseudocode... - take input - remove '-' from the input - decode to normal form - find in the array using binary search - if we find them just add total - else insert new number into...
by Bug!
Tue Jul 27, 2004 5:42 am
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28440

755 - Need help for fast algorithm

Hi all, I've got TLE with this prob, i wonder how can my program got TLE.. This is my algorithh... - take input - remove '-' from the input - decode to normal form - find in the array using binary search - if we find them just add total - else insert new number into an array, and then sorting data u...
by Bug!
Tue Jul 20, 2004 3:48 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 22243

Here is the output.... 1000 85: 1 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 101 103 107 109 113 127 131 137 139 149 151 157 163 167 173 179 181 191 193 197 199 211 223 227 229 233 239 241 251 257 263 269 271 277 281 283 293 307 311 313 317 331 337 347 349 353 359 367 373...
by Bug!
Tue Jul 20, 2004 3:42 am
Forum: Volume 4 (400-499)
Topic: 450 - Little Black Book
Replies: 57
Views: 6308

Argh.... Finally I got AC with this prob.... Thx a lot Shamim.... :wink:
Cheers..
Andre
by Bug!
Tue Jul 20, 2004 3:29 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 38627

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....
by Bug!
Tue Jul 13, 2004 5:51 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 38627

I think u should change ur limit
minTime=99999 -> minTime=2147483648
Good Luck...
Andre
by Bug!
Fri Apr 23, 2004 7:08 am
Forum: Volume 4 (400-499)
Topic: 450 - Little Black Book
Replies: 57
Views: 6308

Now WA

I change my code, and it save me from TLE. But now i got WA with this problem.... Is my algorithm wrong???
Here's my code
*got AC now*
Cheers,
Andre
by Bug!
Tue Apr 20, 2004 9:43 am
Forum: Volume 4 (400-499)
Topic: 450 - Little Black Book
Replies: 57
Views: 6308

need help -> 450-TLE

I try to solve this prob but i still get TLE :cry: , anyone can help me pls??
here's my code:
*code deleted*
Thanx,
Andre :wink:
by Bug!
Thu Jan 08, 2004 11:59 am
Forum: Volume 1 (100-199)
Topic: 147 - Dollars
Replies: 233
Views: 20981

To anybody whose got WA for this problem, I used to get WA for this problem because of 2 reason:
1. Output format
2. Use rounding from double to int conversion
n=(int)(input*100+0.5)
Hope this will help all of You.
Regard,
Andre
by Bug!
Sun Jan 04, 2004 7:33 am
Forum: Volume 4 (400-499)
Topic: 406 - Prime Cuts
Replies: 187
Views: 22243

I tried to compile your program and When your program give:

input:
100 1
500 1

output:
100 1: 41

500 1: 223

I think the output should be:
output:
100 1: 37 41
500 1: 211 223

Maybe this make you'va got wa.
Regard,
Andre
by Bug!
Sun Jan 04, 2004 7:01 am
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 16875

And This is my code

Code: Select all

got ac now
by Bug!
Sun Jan 04, 2004 6:47 am
Forum: Volume 4 (400-499)
Topic: 455 - Periodic Strings
Replies: 73
Views: 16875

455, need some sample input

Hi all :D . I've read all the previous topic about this one, and i've tried all the given input, n the output is correct. But I still got WA for this problem. I've got WA for about 6 times. :cry: Hope I can get another sample input input: 5 HoHoHo dodoldudulzz mangomangomangom dodod abcabcabcabc HoH...

Go to advanced search