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 ...
Search found 24 matches
- Tue Aug 10, 2004 3:33 am
- Forum: Volume 1 (100-199)
- Topic: 122 - Trees on the level
- Replies: 103
- Views: 22045
- Tue Aug 03, 2004 9:05 am
- Forum: Volume 7 (700-799)
- Topic: 755 - 487--3279
- Replies: 115
- Views: 47406
- Wed Jul 28, 2004 11:23 am
- Forum: Volume 7 (700-799)
- Topic: 755 - 487--3279
- Replies: 115
- Views: 47406
- Wed Jul 28, 2004 3:02 am
- Forum: Volume 7 (700-799)
- Topic: 755 - 487--3279
- Replies: 115
- Views: 47406
- Tue Jul 27, 2004 5:42 am
- Forum: Volume 7 (700-799)
- Topic: 755 - 487--3279
- Replies: 115
- Views: 47406
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 ...
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 ...
- Tue Jul 20, 2004 3:48 am
- Forum: Volume 4 (400-499)
- Topic: 406 - Prime Cuts
- Replies: 187
- Views: 60495
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 ...
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 ...
- Tue Jul 20, 2004 3:42 am
- Forum: Volume 4 (400-499)
- Topic: 450 - Little Black Book
- Replies: 57
- Views: 12332
- Tue Jul 20, 2004 3:29 am
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116684
- Tue Jul 13, 2004 5:51 am
- Forum: Volume 1 (100-199)
- Topic: 102 - Ecological Bin Packing
- Replies: 485
- Views: 116684
- Fri Apr 23, 2004 7:08 am
- Forum: Volume 4 (400-499)
- Topic: 450 - Little Black Book
- Replies: 57
- Views: 12332
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
Here's my code
*got AC now*
Cheers,
Andre
- Tue Apr 20, 2004 9:43 am
- Forum: Volume 4 (400-499)
- Topic: 450 - Little Black Book
- Replies: 57
- Views: 12332
need help -> 450-TLE
I try to solve this prob but i still get TLE
, anyone can help me pls??
here's my code:
*code deleted*
Thanx,
Andre

here's my code:
*code deleted*
Thanx,
Andre

- Thu Jan 08, 2004 11:59 am
- Forum: Volume 1 (100-199)
- Topic: 147 - Dollars
- Replies: 233
- Views: 50906
- Sun Jan 04, 2004 7:33 am
- Forum: Volume 4 (400-499)
- Topic: 406 - Prime Cuts
- Replies: 187
- Views: 60495
- Sun Jan 04, 2004 7:01 am
- Forum: Volume 4 (400-499)
- Topic: 455 - Periodic Strings
- Replies: 73
- Views: 28874
And This is my code
Code: Select all
got ac now
- Sun Jan 04, 2004 6:47 am
- Forum: Volume 4 (400-499)
- Topic: 455 - Periodic Strings
- Replies: 73
- Views: 28874
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 ...
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 ...