Search found 16 matches

by kryptolus
Fri May 19, 2006 8:28 am
Forum: Other words
Topic: how is the memory used decided?
Replies: 3
Views: 3004

I think it counts the size of the stack as well... At least that's the impression I got from my submissions.
by kryptolus
Wed Apr 12, 2006 1:21 pm
Forum: Volume 100 (10000-10099)
Topic: 10050 - Hartals
Replies: 59
Views: 19021

Re: 10050 - Hartals - I got RE.

I got A.C. But, I have just changed my Clear part. I used for-loop to clear array instead of memset function. I can't understand why the memset function occur Runtime error. Who can explain me about it? You define 'day' as an array of bools yet you use sizeof(int) instead of sizeof(bool) when you s...
by kryptolus
Wed Apr 12, 2006 11:44 am
Forum: Algorithms
Topic: A regional contest problem
Replies: 6
Views: 2023

Hmm.. Let's say you need one cashier for every hour between 0-10 and you can hire the following cashiers: Cashier 1 works 2-10 Cashier 2 works 0-8 Cashier 3 works 1-9 If you use a greedy algorithm, you have to be careful about which cashier you pick. If you pick Cashier 1 as the first one, you will ...
by kryptolus
Tue Apr 11, 2006 3:48 am
Forum: Algorithms
Topic: A regional contest problem
Replies: 6
Views: 2023

I've never done this problem but it doesn't seem like a greedy algorithm would work. You might have to try all the permutations. You can limit the amount of permutations you need to do by establishing a bound with the greedy algorithm. I didn't put a lot of thought into it so I could very well be w...
by kryptolus
Sun Apr 09, 2006 3:47 am
Forum: Bugs and suggestions
Topic: bad link for "View YOUR SUBMISSIONS! in the Judge statu
Replies: 1
Views: 1990

bad link for "View YOUR SUBMISSIONS! in the Judge statu

It always shows an empty list. If I remove the suffix from the username passed in the URL, then it works.
by kryptolus
Sat Apr 08, 2006 10:12 am
Forum: Volume 101 (10100-10199)
Topic: 10187 - From Dusk Till Dawn
Replies: 50
Views: 17921

The following page has some information about the restricted packages:
http://acm.uva.es/problemset/java.html
by kryptolus
Sat Apr 08, 2006 10:03 am
Forum: Volume 101 (10100-10199)
Topic: 10187 - From Dusk Till Dawn
Replies: 50
Views: 17921

Re: Rules clarifications

I find that hard to believe. If I am permitted to set my initial time at will, I can get more than one valid output for given input data. The reason is, the total travel time is not important in this problem - the number of times 12:00 is crossed is. For example, consider that the graph only contai...
by kryptolus
Sat Apr 08, 2006 9:07 am
Forum: Volume 101 (10100-10199)
Topic: 10187 - From Dusk Till Dawn
Replies: 50
Views: 17921

Re: Rules clarifications

Hi! I am new to this site and these contests. I am supposed to solve the problem 10187 in Java, but after reading the problem specification as well as all How-To's, I can't help but notice that the rules are vague at best. It is quite possible I have overlooked something, so I would appreciate if y...
by kryptolus
Thu Apr 06, 2006 10:26 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 61354

Re: Thx

Thx a lot! I found this function on the Internet but didn't know very well how it worked. Now I got AC. Thx a lot!!! The '5' in %5.2f means add extra spaces if the whole part of the number is less than 5 digits long. So if you print 99, 3 extra spaces are added in front so that the output is always...
by kryptolus
Thu Apr 06, 2006 9:42 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 61354

What if you change %5.2f to %.2f?
by kryptolus
Thu Apr 06, 2006 1:58 am
Forum: Volume 107 (10700-10799)
Topic: 10783 - Odd Sum
Replies: 34
Views: 15135

Try entering an even number for a... You shouldn't limit yourself to the testcases in the problem.
by kryptolus
Mon Mar 27, 2006 5:01 pm
Forum: Bugs and suggestions
Topic: people's info
Replies: 3
Views: 2494

people's info

It would be nice to see more information on people's profiles than just the problems they solved. Name of problem, ranking, link to problem would be nice to have...
by kryptolus
Mon Mar 27, 2006 1:36 pm
Forum: C
Topic: malloc
Replies: 12
Views: 6431

I guess I didn't know as much as I thought I did.
Thanks for the correction. :)
by kryptolus
Mon Mar 27, 2006 3:49 am
Forum: C
Topic: malloc
Replies: 12
Views: 6431

Make the compiler "happy"? So, it's permitted if I write this: curr = malloc ( sizeof( struct data ) ) instead of the other one, isn't it? Can somebody give me more technical reason what's the effect of doing this? Sorry, just wanna know more... Thanx... Some compilers will give you a warning and s...
by kryptolus
Sat Mar 25, 2006 8:09 am
Forum: C
Topic: malloc
Replies: 12
Views: 6431

Re: malloc

Does anyone know the effect and the difference between these: curr = ( struct data * ) malloc ( sizeof( struct data ) ); and curr = malloc ( sizeof( struct data ) ); Thanx... malloc() returns type void * so the result must be type cast if curr is of a different type. the only affect is to make the ...

Go to advanced search