Search found 2 matches
- Thu Oct 11, 2012 3:37 am
- Forum: Volume 104 (10400-10499)
- Topic: 10487 - Closest Sums
- Replies: 89
- Views: 31921
Re: 10487 - Closest Sums
Hi, this one has me stumped. My code passes all the tests that I can find, but I am still getting WA. Any suggestions would be appreciated. #include <cstdio> #include <algorithm> typedef long long int lld; struct SameAsLast { lld last; SameAsLast(lld l) : last(l) { ; } bool operator()(lld x) { bool ...
- Tue Sep 16, 2008 6:48 pm
- Forum: Volume 6 (600-699)
- Topic: 624 - CD
- Replies: 77
- Views: 35167
Getting RE from the judge
I am getting a RE from the judge. My code solves all the inputs listed on this thread, but it does not handle negative track lengths. Does anyone know if that is necessary? I am posting my code below. #include <stdio.h> #include <stdlib.h> /* used to indicate which tracks are used for each possible ...