Search found 193 matches

by turuthok
Tue Sep 11, 2007 8:38 pm
Forum: Volume 112 (11200-11299)
Topic: 11271 - Lattice of Resistors
Replies: 12
Views: 3739

I think this is one of the problems most (if not all) coders should avoid to even try during a running contest. It's either you know it, or you don't (that's where Google comes into picture). Of course, we need to see if we can understand and solve it offline. I even found a PDF containing the a clo...
by turuthok
Fri Jan 30, 2004 6:14 pm
Forum: Volume 4 (400-499)
Topic: 481 - What Goes Up
Replies: 82
Views: 13893

Can someone please confirm if my statement below is correct: If we have 2 LIS sequence with different starting indices, then we should pick the one with greater starting index. And then starting from there, we look for the next greatest index which can give us (LIS-1) ... and so on ... Thanks, -turu...
by turuthok
Sat Jan 17, 2004 5:18 am
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 45787

Ok, this line shall replace your cin >> n;

gets(chs); n = atoi(chs);

And don't forget to include stdlib.h

-turuthok-
by turuthok
Fri Jan 16, 2004 8:00 pm
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 45787

Yes.

-turuthok-
by turuthok
Fri Jan 16, 2004 10:31 am
Forum: Volume 6 (600-699)
Topic: 673 - Parentheses Balance
Replies: 243
Views: 45787

The problem is when you read the first line (n) ... using cin >> n, I guess it won't advance to the next line or something like that ... causing problems on the next cases ... try to use gets(), followed by atoi() to obtain n ... you should get AC after that.

-turuthok-
by turuthok
Wed Oct 15, 2003 1:53 am
Forum: Other words
Topic: 10567 - Helping Fill Bates (Out of Topic)
Replies: 1
Views: 910

10567 - Helping Fill Bates (Out of Topic)

This is definitely just for intermezzo and not important at all ... sorry if it's wasting your time ...

The name on the problem title definitely rhymes with a rich person's name ... even in one of the paragraphs there is a line saying "... Fill Gates ... "

-turuthok-
by turuthok
Tue Oct 07, 2003 3:00 am
Forum: Volume 105 (10500-10599)
Topic: 10564 - Paths through the Hourglass
Replies: 30
Views: 13434

Larry, sorry about my typo ... mine failed 20 0 will all zeroes ...

-turuthok-
by turuthok
Tue Oct 07, 2003 2:57 am
Forum: Volume 105 (10500-10599)
Topic: 10564 - Paths through the Hourglass
Replies: 30
Views: 13434

Larry, what if 20 and 39 ... with all zeroes instead of all ones.

I know I failed this one but passed the all ones (I think).

-turuthok-
by turuthok
Wed Sep 03, 2003 10:04 am
Forum: Off topic (General chit-chat)
Topic: A New Kind of Science
Replies: 1
Views: 1791

I have it.

Looks very similar to Cellular Automata ... never got a chance to finish it, though ...

-turuthok-
by turuthok
Sat Aug 30, 2003 6:11 am
Forum: Volume 105 (10500-10599)
Topic: 10545 - Maximal Quadrilateral
Replies: 13
Views: 6308

Looks like it's also called "tangential quadrilateral", ... http://www.mathworld.com has some interesting properties (and formula) about it.

-turuthok-
by turuthok
Fri Aug 22, 2003 11:55 am
Forum: Volume 105 (10500-10599)
Topic: 10523 - Very Easy !!!
Replies: 63
Views: 22641

Dominik, I got the same result as yours ... (and the same WA, I guess).

-turuthok-
by turuthok
Wed Aug 20, 2003 5:26 am
Forum: Algorithms
Topic: how long the array is!!!
Replies: 7
Views: 2886

But gosh ... 10^14 ... that's fourteen zeroes ... huge huge input.

-turuthok-
by turuthok
Mon Aug 18, 2003 9:53 am
Forum: General
Topic: Are there some combinatorics problems?
Replies: 7
Views: 2045

I second that ... I'm using a sorting method as well. But I guess there's probably more than one way to solve this problem. It all depends on your approach ...

-turuthok-
by turuthok
Mon Aug 18, 2003 9:48 am
Forum: Volume 1 (100-199)
Topic: 102 - Ecological Bin Packing
Replies: 485
Views: 49455

Yep, int is 32-bits signed integer since 64-bit compilers were here years ago ... I noticed that the univ I graduated from still uses old compilers like 16-bits BC ... Even their Intel-Assembly language programming is still stuck with 16-bits programming when the processor has evolved a great deal a...
by turuthok
Sat Aug 16, 2003 1:44 am
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 182637

In your solve() function, don't you think you need to also put +1 in the else part of if (n < PROB_MAX) ???

-turuthok-

Go to advanced search