Search found 31 matches

by helmet
Fri Jan 07, 2005 9:56 am
Forum: Volume 107 (10700-10799)
Topic: 10754 - Fantastic Sequence
Replies: 16
Views: 11060

AC finally

Of all the trivial mistakes I could make , this one took the cake.I hadn't initialised one of my arrays properly!!!AC finallly (phew) Anyways I hope the sample ip-op is correct: 16 2 76 0 2147483647 2147483647 -2147483648 -2147483647 -2147483648 2 76 1 2147483647 2147483647 -2147483648 -2147483647 -...
by helmet
Thu Jan 06, 2005 9:55 pm
Forum: Other words
Topic: more input-output
Replies: 4
Views: 1588

The problem in giving too many sample input outputs in some problems is that these can in fact give an unnecessary clue as to how to solve the problem.Clearly the purpose of the test cases is not to tell you how to proceed but just to a small verification as to the veracity of your algo and maybe to...
by helmet
Fri Dec 10, 2004 1:02 pm
Forum: Volume 107 (10700-10799)
Topic: 10785 - The Mad Numerologist
Replies: 8
Views: 3371

R comes only in n=202 case...

n=200 seems correct...
by helmet
Fri Oct 15, 2004 2:20 pm
Forum: Volume 104 (10400-10499)
Topic: 10454 - Trexpression
Replies: 15
Views: 3932

Finally

Found my mistake
Found my mistake
Found my mistake!!!

Some small mistake which I chanced upon when i was giving some random inputs.Thanks for your time (dot)(dot)

:D
by helmet
Thu Oct 14, 2004 10:20 am
Forum: Volume 104 (10400-10499)
Topic: 10454 - Trexpression
Replies: 15
Views: 3932

I dont use division anywhere.

Could you gimme some good sample ip and op?(something which can hopefully find my bug...:( )

Thanks in advance...
by helmet
Thu Oct 14, 2004 10:06 am
Forum: Volume 104 (10400-10499)
Topic: 10454 - Trexpression
Replies: 15
Views: 3932

So what could be a problem?

Without revealing much about my solution let me just say that my answer is the product of several subproblems all of which are somehow based on catalan numbers.

Any overflow problems?
by helmet
Thu Oct 14, 2004 8:34 am
Forum: Volume 104 (10400-10499)
Topic: 10454 - Trexpression
Replies: 15
Views: 3932

10454 WA

I am getting WA for this problem and I think I am making a mistake in the base case/tricky cases. I would appreciate some test cases plz. Also could someone verify the input-output for these Input: 1+1+1+1+2*2+1*2*2*2+1+1+1+1*2+1 ((((((1+2)))))) 1*1*1*1*1*1*1*1*1 (1*1*1*1)*(1*1*1*1*1) 1+1+1*1+1+1*1+...
by helmet
Tue Aug 10, 2004 7:30 am
Forum: Volume 6 (600-699)
Topic: 624 - CD
Replies: 77
Views: 33421

624 CD

Hi I keep on getting WA...any tricks here?

Plz help
by helmet
Mon Aug 09, 2004 11:05 am
Forum: Volume 106 (10600-10699)
Topic: 10692 - Huge Mods
Replies: 15
Views: 11419

Some random sample

Some random IO ... Input: 9384 7 778 916 794 336 387 493 650 1422 3 28 691 60 7764 7 541 427 173 737 212 369 568 6430 3 531 863 124 4068 6 930 803 23 59 70 168 1394 7 12 43 230 374 422 920 785 8538 9 325 316 371 414 527 92 981 957 874 6863 1 997 7282 6 926 85 328 337 506 847 1730 4 858 125 896 583 5...
by helmet
Mon Aug 09, 2004 11:01 am
Forum: Volume 106 (10600-10699)
Topic: 10686 - SQF Problems
Replies: 21
Views: 11863

Thanks

I dont know what happened...But I think it was Per's suggestion that I remove empty spaces before I see end of line(ergo flawed input)

My prg got AC but I think there can be some change in judge for this.Atleast an enquiry?
by helmet
Sat Aug 07, 2004 12:58 pm
Forum: Volume 106 (10600-10699)
Topic: 10692 - Huge Mods
Replies: 15
Views: 11419

Phi(n)=n*(1-1/p1)*(1-1/p2)*... is a well known formula :D However I wasnt aware that using the Chinese Remainder theorem we can get xmod(ab) given xmoda and xmodb.I know now.(where (a,b)=1). Moreover since the mod limit is only 10000, prime generation is also easy and fast.I didnt realise this. Than...
by helmet
Sat Aug 07, 2004 6:55 am
Forum: Volume 106 (10600-10699)
Topic: 10692 - Huge Mods
Replies: 15
Views: 11419

the other approach is to try to find cycles in the a^i. though mathematically equivalent to phi function, it is easier to get that. but i got WA with that and i don't know why. can anybody tell me possible mistakes that i could have made in that? Only mistake possible here is that you dont consider...
by helmet
Fri Aug 06, 2004 3:42 pm
Forum: Volume 106 (10600-10699)
Topic: 10686 - SQF Problems
Replies: 21
Views: 11863

10686 - SQF Problems

Pained by TLE
now WA

Someone help

~Thanks~
by helmet
Thu Aug 05, 2004 6:55 am
Forum: Volume 106 (10600-10699)
Topic: 10692 - Huge Mods
Replies: 15
Views: 11419

Found the error

While I was sitting in class today I realised my error.

If anyone needs sample IO plz ask.
by helmet
Wed Aug 04, 2004 2:04 pm
Forum: Volume 106 (10600-10699)
Topic: 10692 - Huge Mods
Replies: 15
Views: 11419

10692 - Huge Mods

It seems only 1 AC out of 13 submissions.Am I missing something here?

Can the person who got AC tell if there is some tricks in the input?Maybe some sample I/o?
Are any people who got it during the contest getting WA?

Go to advanced search