Search found 12 matches

by Project
Sun Feb 26, 2006 10:08 am
Forum: Volume 2 (200-299)
Topic: 262 - Transferable Voting
Replies: 22
Views: 9916

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 list...
by Project
Fri Sep 30, 2005 1:51 pm
Forum: C++
Topic: sorting list
Replies: 2
Views: 1773

2 sumankar: Great Thanks for the Help!!!
by Project
Wed Sep 28, 2005 8:44 pm
Forum: C++
Topic: sorting list
Replies: 2
Views: 1773

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); // !!! Here I ...
by Project
Fri Sep 23, 2005 4:25 pm
Forum: Volume 7 (700-799)
Topic: 713 - Adding Reversed Numbers
Replies: 142
Views: 40777

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 work w...
by Project
Sun Sep 18, 2005 4:28 pm
Forum: C++
Topic: read til the end of line
Replies: 7
Views: 3275

zero_cool wrote:does anyone know how to read til the end of line without using string???
I've seen something like that on this board. There was something with cin.peek ...
by Project
Sat Sep 17, 2005 2:33 pm
Forum: C++
Topic: Fraction of real numbers.
Replies: 9
Views: 3186

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 f...
by Project
Sat Sep 17, 2005 9:11 am
Forum: C++
Topic: Fraction of real numbers.
Replies: 9
Views: 3186

Sorry, I had problems with Internet and could not answer yesterday. And just how is your code supposed to work? Give us a few examples of what do you expect... Function print_fnum(double d) must print the value of d. That's all. For example in code it must print "-21.874823734" instead of "-21.87482...
by Project
Thu Sep 15, 2005 5:45 pm
Forum: C++
Topic: Fraction of real numbers.
Replies: 9
Views: 3186

chunyi81 wrote:try this code:

Code: Select all

d -= (int)d;
printf("%lf\n",d);
hm, this one works like previous :(
by Project
Wed Sep 14, 2005 10:07 pm
Forum: C++
Topic: Fraction of real numbers.
Replies: 9
Views: 3186

#include <cmath> ... double x=345.123456789; double y=fmod(x, 1); But I remeber I read some post which said fmod is faulty. Thank you for the answer! Yeah, really this one does not work properly. Another solution "y=x-floor(x)" also. But why so I can't understand. Here is a code, which works faulty...
by Project
Wed Sep 14, 2005 7:19 pm
Forum: C++
Topic: Fraction of real numbers.
Replies: 9
Views: 3186

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 .
by Project
Tue Jul 19, 2005 3:52 pm
Forum: Other words
Topic: Viewing personal info.
Replies: 3
Views: 1060

Great Thanks for the Help!
by Project
Tue Jul 19, 2005 9:32 am
Forum: Other words
Topic: Viewing personal info.
Replies: 3
Views: 1060

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!

Go to advanced search