Search found 14 matches

by pranon
Tue Sep 25, 2012 11:08 pm
Forum: Volume 112 (11200-11299)
Topic: 11297 - Census
Replies: 24
Views: 14606

Re: 11297 - Census

Code: Select all

Code ``Accepted". Problem in updating the segment when the one being updated is the current max/min node.
by pranon
Tue Sep 25, 2012 4:20 pm
Forum: Volume 112 (11200-11299)
Topic: 11297 - Census
Replies: 24
Views: 14606

Re: 11297 - Census

Code ``Accepted". Problem in updating the segment when the one being updated is the current max/min node.
by pranon
Wed Aug 01, 2012 8:26 am
Forum: Volume 109 (10900-10999)
Topic: 10986 - Sending email
Replies: 65
Views: 26562

Re: 10986 - Sending email

Yes, I think it takes lg(n) operations to insert, pop and update some node in the worst case. It's an array stored like a heap. I don't know stl. :( I edited my code after getting accepted in 929. But still ``Time Limit Exceeded". #include <stdio.h> #include <string.h> void djikstra(int i); void ins...
by pranon
Tue Jul 31, 2012 9:37 am
Forum: Volume 9 (900-999)
Topic: 929 - Number Maze
Replies: 92
Views: 39789

Re: 929 - Number Maze

My code passes all of the sample i/o that I have seen and still gives ``Wrong Answer". :(

Code: Select all

Code removed after AC, problem in deleting from the heap.
Thanks in advance.
by pranon
Tue Jul 31, 2012 8:12 am
Forum: Volume 109 (10900-10999)
Topic: 10986 - Sending email
Replies: 65
Views: 26562

Re: 10986 - Sending email

Ok, I'm extremely sorry I posted without removing the... Ok, here's the code. getting ``Time Limit Exceeded". #include <stdio.h> #include <string.h> void djikstra(int i); void insert(int i); int pop(void); void update(int i); void initialize(void); int adj[20003][20003], weight[20003][20003], dis[20...
by pranon
Sun Jul 29, 2012 7:29 pm
Forum: Volume 109 (10900-10999)
Topic: 10986 - Sending email
Replies: 65
Views: 26562

Re: 10986 - Sending email

Is there something I can do to make my code more efficient? Or does it fall in an infinite loop for some test case?
Any pointers as to how the code can be made more efficient?
Thanks in advance :'(

Code: Select all

Code Edited
by pranon
Wed Jul 25, 2012 10:49 pm
Forum: Volume 106 (10600-10699)
Topic: 10681 - Teobaldo's Trip
Replies: 44
Views: 11791

Re: 10681 - Teobaldo's Trip

Code being judged ``WA" with me having no idea why. Any help in pointing out would be much appreciated. [code] #include <stdio.h> #include <string.h> char mat[105][105], adj[105][105], temp[105][105], city[105]; char ytic[100000]; int main() { int c, l, j, i, a, b, s, e, d, t, k; while(scanf("%d %d"...
by pranon
Wed Jul 25, 2012 9:19 am
Forum: Volume 119 (11900-11999)
Topic: 11906 - Knight in a War Grid
Replies: 13
Views: 7524

Re: 11906 - Knight in a War Grid

Code edited for above input. But... is still being judged ``Wrong Answer".

Code: Select all

AC, thanks to brianfry713. :)

Sorry. And thanks in advance.
by pranon
Tue Jul 24, 2012 8:00 pm
Forum: Volume 119 (11900-11999)
Topic: 11906 - Knight in a War Grid
Replies: 13
Views: 7524

Re: 11906 - Knight in a War Grid

``Wrong Answer"! :'(
Can anyone help me in finding my mistake?

Code: Select all

AC, lots of missed cases. Should analyze carefully and properly. :(
by pranon
Tue Jul 24, 2012 3:45 pm
Forum: Volume 3 (300-399)
Topic: 341 - Non-Stop Travel
Replies: 38
Views: 11288

Re: 341 Non-Stop Travel

Can anyone tell me what's wrong with my code? Or some sample i/o for which it fails?

Code: Select all

Removed after AC. Remember not to manipulate the loop counter...
Thanks in advance. :(
by pranon
Mon Jul 23, 2012 11:38 pm
Forum: Volume 100 (10000-10099)
Topic: 10009 - All Roads Lead Where?
Replies: 60
Views: 14146

Re: 10009 - All Roads Lead Where?

I'm extremely sorry for not noticing this.
This has become a habit of mine, doing a lot of changes to the code, and forgetting to remove the debug statements. I recently did this in a contest as well, :'(
However Thanks a LOT! :D
by pranon
Mon Jul 23, 2012 5:02 pm
Forum: Volume 4 (400-499)
Topic: 429 - Word Transformation
Replies: 82
Views: 16728

Re: 429 Word Transformation

``WA" on this problem as well, with no apparent bugs apparent to me. Will be greatful for any help. :)

Code: Select all

Code removed. Should always remember to makenull() my queue. :D
Thanks in advance.
by pranon
Mon Jul 23, 2012 3:05 pm
Forum: Volume 100 (10000-10099)
Topic: 10009 - All Roads Lead Where?
Replies: 60
Views: 14146

Re: 10009 - All Roads Lead Where?

My code is being judged ``Wrong Answer" for some reason. Can anyone provide some i/o where my code fails?

Code: Select all

AC :D should always remember to remove or comment my debugging mess. :D
Thanks in advance! And sorry about the mess I've made of it in attempts at debugging! :(
Pranon

Go to advanced search