Search found 67 matches
- Wed Jul 04, 2007 12:03 pm
- Forum: Volume 7 (700-799)
- Topic: 766 - Sum of powers
- Replies: 14
- Views: 8997
- Mon Jul 02, 2007 3:32 am
- Forum: Volume 1 (100-199)
- Topic: 196 - Spreadsheet
- Replies: 42
- Views: 15624
- Fri Jun 02, 2006 4:52 pm
- Forum: Volume 7 (700-799)
- Topic: 734 - The Programmer's Hex
- Replies: 8
- Views: 4467
- Sun Mar 26, 2006 6:53 am
- Forum: Volume 2 (200-299)
- Topic: 288 - Arithmetic Operations With Large Integers
- Replies: 14
- Views: 7698
So I keep getting WA. I implemented, but didn't post, a class Z which is meant to be an arbitrary precision integer class (it is meant to act like int, overloaded operaters etc.). I'm pretty sure the +,* and - work with the Z class, since I've used it on other problems. ** also seems to work (I test...
- Thu Mar 16, 2006 10:51 am
- Forum: C++
- Topic: STL or C style?
- Replies: 5
- Views: 9154
Another thing about the STL is that if used properly it can be faster than C code. Consider the qsort() function. It takes a function pointer as a parameter and uses that to compare two items. std::sort() does the comparision through a function object. A smart compiler could maybe inline the functio...
- Thu Mar 16, 2006 10:08 am
- Forum: Volume 1 (100-199)
- Topic: 194 - Triangle
- Replies: 22
- Views: 6984
- Thu Mar 16, 2006 9:09 am
- Forum: Volume 1 (100-199)
- Topic: 194 - Triangle
- Replies: 22
- Views: 6984
- Thu Mar 16, 2006 2:37 am
- Forum: Volume 1 (100-199)
- Topic: 194 - Triangle
- Replies: 22
- Views: 6984
I don't get the second example. The information it gives is a = 62.72048064, alpha = 2.26853639, and beta = 0.56794657. so, I calculate (from the angles summing to pi) gamma = .30510969... Then I use c = a * sin(gamma)/sin(alpha) = 24.58722428... So when I print it out I get 24.587224, which differs...
- Wed Mar 15, 2006 2:26 am
- Forum: Volume 1 (100-199)
- Topic: 176 - City Navigation
- Replies: 20
- Views: 9886
- Tue Feb 21, 2006 3:17 am
- Forum: Volume 1 (100-199)
- Topic: 135 - No Rectangles
- Replies: 24
- Views: 9532
http://online-judge.uva.es/board/viewtopic.php?t=177
If you're still confused, I could try to explain it in more detail.
If you're still confused, I could try to explain it in more detail.
- Tue Jan 10, 2006 8:06 pm
- Forum: C++
- Topic: stdio or iostream??
- Replies: 6
- Views: 3354
As misof said, scanf/printf are significantly faster than cin/cout. I've been hit by this on quite a few problems (including one I recently solved that took me about 20 submits). Most of the problems that are really that critical on runtime are in the earlier volumes and I find in such cases that I ...
- Mon Jan 09, 2006 8:25 am
- Forum: Volume 1 (100-199)
- Topic: 163 - City Directions
- Replies: 24
- Views: 13382
Ok, I just got AC and I spent so much time on this problem that I would like to make clear what the rules are: First check if the turn makes sense at all (i.e. there is a road in the direction you want to turn). If not then obviously the turn is NOT valid. Next check if you are entering or exiting a...
- Sun Sep 18, 2005 5:29 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10820 - Send a Table
- Replies: 34
- Views: 17853
- Thu Jun 16, 2005 2:20 am
- Forum: Volume 107 (10700-10799)
- Topic: 10774 - Repeated Josephus
- Replies: 31
- Views: 11722
- Wed Jun 15, 2005 3:29 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10774 - Repeated Josephus
- Replies: 31
- Views: 11722