The list of ballots is terminated by an end-of-file.
what does it mean? i think it means that after each list of ballots i can meet EOF? i'm in complete confusion
It means that in last test there is no empty line after ballots list.
Everything said above is checked and correct:
1. A candidates ...
Search found 12 matches
- Sun Feb 26, 2006 10:08 am
- Forum: Volume 2 (200-299)
- Topic: 262 - Transferable Voting
- Replies: 22
- Views: 13280
- Fri Sep 30, 2005 1:51 pm
- Forum: C++
- Topic: sorting list
- Replies: 2
- Views: 2270
- Wed Sep 28, 2005 8:44 pm
- Forum: C++
- Topic: sorting list
- Replies: 2
- Views: 2270
sorting list
Hello!
I'm using VC 6.0. But when I try to sort a list with comp-function I have problems with compilation of source.
here is my code:
//comp-function:
bool comp(int a, int b)
{
return (a>b);
}
...
//in main():
list<int> l;
l.push_back(1);
l.push_back(2);
l.push_back(3);
l.sort(comp ...
I'm using VC 6.0. But when I try to sort a list with comp-function I have problems with compilation of source.
here is my code:
//comp-function:
bool comp(int a, int b)
{
return (a>b);
}
...
//in main():
list<int> l;
l.push_back(1);
l.push_back(2);
l.push_back(3);
l.sort(comp ...
- Fri Sep 23, 2005 4:25 pm
- Forum: Volume 7 (700-799)
- Topic: 713 - Adding Reversed Numbers
- Replies: 142
- Views: 60786
Re: 713 - compiles fine everywhere ; but not on the judge :(
Hi, n00i3.
I think you should try next trick:
firstly try to submit first half of your functions. If you get WA, try to submit second half of all functions.
With functions set where was Compilation Error try to do the same. And so on.
Attention: You should rebuild some functions so they would ...
I think you should try next trick:
firstly try to submit first half of your functions. If you get WA, try to submit second half of all functions.
With functions set where was Compilation Error try to do the same. And so on.
Attention: You should rebuild some functions so they would ...
- Sun Sep 18, 2005 4:28 pm
- Forum: C++
- Topic: read til the end of line
- Replies: 7
- Views: 4084
- Sat Sep 17, 2005 2:33 pm
- Forum: C++
- Topic: Fraction of real numbers.
- Replies: 9
- Views: 4334
Thank you, Dominik, for your response! :).
Buy the way, in printf there is also "lg" if you want print all significant digits after decimal point.
I've tried to code a function that's doing this job just for example of incorrect using of such constructions as "-floor, fmod(x, 1), -int" for finding ...
Buy the way, in printf there is also "lg" if you want print all significant digits after decimal point.
I've tried to code a function that's doing this job just for example of incorrect using of such constructions as "-floor, fmod(x, 1), -int" for finding ...
- Sat Sep 17, 2005 9:11 am
- Forum: C++
- Topic: Fraction of real numbers.
- Replies: 9
- Views: 4334
- Thu Sep 15, 2005 5:45 pm
- Forum: C++
- Topic: Fraction of real numbers.
- Replies: 9
- Views: 4334
hm, this one works like previouschunyi81 wrote:try this code:
Code: Select all
d -= (int)d; printf("%lf\n",d);

- Wed Sep 14, 2005 10:07 pm
- Forum: C++
- Topic: Fraction of real numbers.
- Replies: 9
- Views: 4334
- Wed Sep 14, 2005 7:19 pm
- Forum: C++
- Topic: Fraction of real numbers.
- Replies: 9
- Views: 4334
Fraction of real numbers.
If there is any function in C/C++ for getting a fraction of real numbers?
For example f(345.123456789) = 0.123456789 .
For example f(345.123456789) = 0.123456789 .
- Tue Jul 19, 2005 3:52 pm
- Forum: Other words
- Topic: Viewing personal info.
- Replies: 3
- Views: 1526
- Tue Jul 19, 2005 9:32 am
- Forum: Other words
- Topic: Viewing personal info.
- Replies: 3
- Views: 1526
Viewing personal info.
Hello!
Can anyone explain how to get info on http://acm.uva.es/problemset/statusjudge.php and only for one ID.
http://acm.uva.es/problemset/statusjudge.php?u=xxxxxXX does not work
.
And if it's possible just for a one problem.
Thank you!
Can anyone explain how to get info on http://acm.uva.es/problemset/statusjudge.php and only for one ID.
http://acm.uva.es/problemset/statusjudge.php?u=xxxxxXX does not work

And if it's possible just for a one problem.
Thank you!