Search found 584 matches
- Mon Oct 13, 2008 10:59 pm
- Forum: Volume 1 (100-199)
- Topic: 166 - Making Change
- Replies: 31
- Views: 6954
- Mon Oct 08, 2007 3:31 pm
- Forum: C++
- Topic: Compile error on priority_queue.
- Replies: 6
- Views: 3815
- Wed Oct 03, 2007 8:30 pm
- Forum: C++
- Topic: C++ Template Specialisation Problem
- Replies: 9
- Views: 4080
- Wed Oct 03, 2007 8:27 pm
- Forum: C++
- Topic: Always WA, even with correct output... (what am I missing?)
- Replies: 6
- Views: 3880
- Thu Sep 27, 2007 1:23 pm
- Forum: Algorithms
- Topic: Need expert's view for geometry algos.
- Replies: 23
- Views: 10026
- Wed Sep 26, 2007 6:49 pm
- Forum: Algorithms
- Topic: Need expert's view for geometry algos.
- Replies: 23
- Views: 10026
Not that you'll ever need this on an ACM ICPC contest, but for the sake of completeness: maximum number of points on a line can be done in O(n^2) by using the point-line duality, and then traversing the plane subdivision and looking for the vertex of maximum degree. Or better yet, with simple hashi...
- Fri Sep 07, 2007 1:00 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10126 - Zipf's Law
- Replies: 36
- Views: 9719
- Thu Jul 12, 2007 2:00 am
- Forum: C++
- Topic: C++ string usage: compile error
- Replies: 4
- Views: 2573
- Fri Jul 06, 2007 11:39 pm
- Forum: C++
- Topic: How to check for blank line?
- Replies: 5
- Views: 3924
Do you need it all spell out? You already have tools necessary to accomplish that goal (I'll just add that string::size() method is nicer than string::length()). If you don't, my advice is that you get a good book and read it, your questions indicate lack of basic understanding of programming in gen...
- Thu Jun 28, 2007 2:14 pm
- Forum: C++
- Topic: Why can we use the manipulators in <iomanip>
- Replies: 3
- Views: 2126
- Thu Jun 28, 2007 11:32 am
- Forum: C++
- Topic: Why can we use the manipulators in <iomanip>
- Replies: 3
- Views: 2126
The second (manipulators that do not take arguments) and third (manipulators that take an argument). It's clearly said in the manual you pointed to that manipulators return unspecified types that operator<< and operator>> are overloaded for, so you shouldn't be expecting any of these operators to be...
- Sat Jun 09, 2007 3:50 pm
- Forum: C
- Topic: Complie error
- Replies: 4
- Views: 5831
I can't tell you what the problem really is unless you provide the exact error message (you should get in on your email). However, one thing is that all identifiers beginning with underscore are reserved for internal purposes and one must avoid using them. Suggested approach is to use trailing under...
- Fri Jun 01, 2007 7:10 pm
- Forum: C
- Topic: 64 bit compiler (gcc) - expert question
- Replies: 8
- Views: 7641
Thanks. Talking about benchmarks: division using 64 bit doubles is about 2.5 times faster than using 32 bit ints; division using 128 bit long doubles is also about 2.5 faster than using 64 bit longs and about 1.5 times slower than using 64 bit doubles. At least on my processor (AMD 64 X2 3800+). Ca...
- Fri Jun 01, 2007 2:06 pm
- Forum: C
- Topic: 64 bit compiler (gcc) - expert question
- Replies: 8
- Views: 7641
- Tue Feb 27, 2007 1:03 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11019 - Matrix Matcher
- Replies: 43
- Views: 19105