## Search found 33 matches

Sun Jan 02, 2005 10:28 am
Forum: Volume 107 (10700-10799)
Topic: 10791 - Minimum Sum LCM
Replies: 46
Views: 22690
input:
100
200
300

output:
Case 1: 29
Case 2: 33
Case 3: 32

Hope it helps
Thu Dec 30, 2004 4:33 pm
Forum: Volume 107 (10700-10799)
Topic: 10790 - How Many Points of Intersection?
Replies: 28
Views: 16685
the max value of a,b is 20000.
i don't know your formula but for 20000 input the vaule should be out of double/long double range. u can try
Tue Nov 30, 2004 9:32 pm
Forum: Volume 106 (10600-10699)
Topic: 10656 - Maximum Sum (II)
Replies: 52
Views: 16679
i don't know why u get so much confused in this problem. it's a mock test type problem. just print the subsequence which has maximum summation value from the given sequence. if the input is like, 3 2 0 5 then the output will be 2 5. if two sequence has the same value then we need to print the sequen...
Mon Nov 29, 2004 12:06 pm
Forum: Other words
Topic: New idea for authors rank list
Replies: 5
Views: 2014
To w.k
i am agree with yout idea. two parellel ranklist can be maintained.
1) for all time ranklist
2) current ranklist ( those who submutted problems in last 5/6 months )
Sun Nov 14, 2004 10:04 am
Forum: Volume 107 (10700-10799)
Topic: 10768 - Planarity
Replies: 19
Views: 4764
just replce "#include<memory.h>" with
""#include<string.h>"

pls post code in c/c++ formatted way.
Thu Nov 11, 2004 8:15 pm
Forum: Volume 107 (10700-10799)
Topic: 10763 - Foreign Exchange
Replies: 45
Views: 18205
if u carefully read the problem description u will find that the range of location is not more than 500000.
Wed Nov 10, 2004 8:31 am
Forum: Volume 107 (10700-10799)
Topic: 10769 - Pillars
Replies: 22
Views: 11124
I think i was a little bit lucky in contest incase of handling multiple blank line between cases. first i assume that judge data doesn't contain no space at the end of B W blocks height lines. so i tried like that, scanf("%d %c",&height,&ch); if(ch=='\n') break; i submitted and got AC. if i would go...
Wed Nov 10, 2004 12:02 am
Forum: Volume 107 (10700-10799)
Topic: 10769 - Pillars
Replies: 22
Views: 11124
I don't think that height can be 0. so some of B or W blocks may not be 0. if it is 0 then i would surely get WA rather than AC.
Tue Nov 09, 2004 8:12 pm
Forum: Volume 107 (10700-10799)
Topic: 10769 - Pillars
Replies: 22
Views: 11124
Input:

60
10 20 30 60
5 10 10 15

60
10 20 30 35
5 10 10 15

40
5 5 10 10
20 5 10 30 10

80
70 60 30 15 10
90 20 20 10

Output:

30 15 10 5
35 10 10 5
10 20 5 5
30 20 10 20

[/code]
Tue Nov 09, 2004 4:47 am
Forum: Volume 107 (10700-10799)
Topic: 10769 - Pillars
Replies: 22
Views: 11124
nope,
i only consider intger and got AC.
Wed Aug 04, 2004 10:24 pm
Forum: Volume 106 (10600-10699)
Topic: 10693 - Traffic Volume
Replies: 12
Views: 6452
The main problem is here: b=(2*f*60*sqrtl(2*f1*l1)+eps) ;
Think more about it. I replace your formula by mine and get AC. again it's a 2 line code and u needn't use eps at all.
Wed Jul 07, 2004 3:46 pm
Forum: Volume 106 (10600-10699)
Topic: 10680 - LCM
Replies: 38
Views: 13036
my code passed on all output given by htl but i'm getting WA with 0.121sec
so, more I/O will be appriciated.
Mon Apr 26, 2004 8:32 pm
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 8356
u said u got WA but i got RTE.
If i increased the size to 30001 then got TLE.
U should precaulate al possible outputs upto 30000.
then take input and print.
But u r calcuting everytime after taking input and that's the reason for TLE.

Hope it will help u
Mon Apr 26, 2004 8:25 pm
Forum: Volume 3 (300-399)
Topic: 357 - Let Me Count The Ways
Replies: 90
Views: 8356
Hi,

I have send your code and got AC.
Fri Apr 23, 2004 7:55 am
Forum: Volume 100 (10000-10099)
Topic: 10018 - Reverse and Add
Replies: 169
Views: 22246
Hi,

Do u get answer for the sample I/O ?
I faced TLE in the Sample I/O in your code
Moreover , u first take n as total number of input. But u never create a loop to take n inputs.