Search found 37 matches

by kiha
Wed Jan 14, 2004 12:07 am
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 21485

Hi, thanks for the source of this algorithm :) I read this , understood , but my program doesn't work I hate putting here unworking codes , but now - no matter what I change I always get WA [pascal] I deleted the code :P [/pascal] Can somebody help me ? Maybe you can give me some test cases on which...
by kiha
Mon Jan 12, 2004 6:18 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 21485

Hmmm ... thanks pavelph , now I understand ...

Hey , did you try to use readln instead of val ? Because when you use val on the empty string ( '' ) it may give you some value , and readln reads until it finds the integer value .

And please explain this algorithm to me ;]
by kiha
Sun Jan 11, 2004 11:33 pm
Forum: Volume 4 (400-499)
Topic: 497 - Strategic Defense Initiative
Replies: 144
Views: 21485

Er ... I don't know what's wrong with your program , but ... :> I don't understand the algorithm which you use in your program . If somebody can explain it to me , I'd be very pleased ... I know it isn't a difficult problem , but I can't invent the proper method :/ Maybe if I understood the algorith...
by kiha
Sat Jan 10, 2004 4:57 pm
Forum: Volume 103 (10300-10399)
Topic: 10323 - Factorial! You Must be Kidding!!!
Replies: 106
Views: 32652

Thank you, I wasted about 5 submissions on this problem before reading this. First I thought that if the number is negative , whether it is even I should output the factorial of its absolute value (|n|!) and otherwise - the negative factorial of its absolute value (-|n|!) By the way , I have never h...
by kiha
Sat Jan 10, 2004 1:12 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 35636

Yupeeeeeeeeee I got Accepted [P.E.] on this problem. I will try to get AC without P.E. , but I have some hints for you who get WA on this problem : 1) if you write in Pascal [I don't know how is it like in C/C++] and remember the number as a string , be careful if the last character of this string i...
by kiha
Sat Jan 10, 2004 12:55 pm
Forum: Volume 105 (10500-10599)
Topic: 10599 - Robots(II)
Replies: 27
Views: 10207

Hi I also use Dynamic Programming to solve this problem , but I never can get AC. I ckecked my program on your test case with garbage on each field and it wrote that the number of ways to collect 19 garbages is 19! (factorial) I realised that I have made a mistake in counting the ways ... can somebo...
by kiha
Thu Jan 08, 2004 11:26 pm
Forum: Volume 7 (700-799)
Topic: 706 - LCD Display
Replies: 221
Views: 35636

Er ... :/ maybe you could put some hints for this problem here , for example what to do if the size is 0 , or anything ... thanks in advance

Go to advanced search