trunc simply removes the fractional part of a number, hence trunc(3.5) = 3 and trunc(-3.5) = -3. But ceil behaves differently for positive and negative numbers: ceil(-3.5) = -3, but ceil(3.5) = 4.

trunc simply removes the fractional part of a number, hence trunc(3.5) = 3 and trunc(-3.5) = -3. But ceil behaves differently for positive and negative numbers: ceil(-3.5) = -3, but ceil(3.5) = 4.

OK I don't get it.
I looked in the wikipedia and it defines the ceil fuction's job as giving the integer of the number closer to 0. It gave the same type of example like 3.5 where it is actually moving away from the 0.
Also, I don't think there is a ceil function in Pascal? Or is there?

OK I don't get it.

I looked in the wikipedia and it defines the ceil fuction's job as giving the integer of the number closer to 0. It gave the same type of example like 3.5 where it is actually moving away from the 0.

Also, I don't think there is a ceil function in Pascal? Or is there?

There is no ceil function in Pascal, to the best of my knowledge. Anyways, so the ceiling of a number x is an integer y that satisfies the following properties:
1. y is greater than or equal to x.
2. There is no smaller value of y that satisfies #1.
For example, ceil(1) = 1, ceil(1.1) = 2, ceil(1.9) = 2, ceil(-1.5) = -1. Basically it's the first integer that you encounter when moving right on the number line.

There is no ceil function in Pascal, to the best of my knowledge. Anyways, so the ceiling of a number x is an integer y that satisfies the following properties: 1. y is greater than or equal to x. 2. There is no smaller value of y that satisfies #1.

For example, ceil(1) = 1, ceil(1.1) = 2, ceil(1.9) = 2, ceil(-1.5) = -1. Basically it's the first integer that you encounter when moving right on the number line.

Just wondering, if the programs that you do count for marks, then how about us (people from Churchill). Will the programs that we've done already count for marks next year?

Just wondering, if the programs that you do count for marks, then how about us (people from Churchill). Will the programs that we've done already count for marks next year?

Points aren't allowed to carry over to the next year. Of course, these problems give you the experience and confidence necessary to solve harder problems, such as the ones on the USACO training webpages.

Points aren't allowed to carry over to the next year. Of course, these problems give you the experience and confidence necessary to solve harder problems, such as the ones on the USACO training webpages.

But, I can barely do anymore programs (at least not with the skills that I have). If you check my submissions, it's been getting increasingly harder to get points, and if I've already done most of the programs that I can do this year, then I have almost nothing I can do next year.

But, I can barely do anymore programs (at least not with the skills that I have). If you check my submissions, it's been getting increasingly harder to get points, and if I've already done most of the programs that I can do this year, then I have almost nothing I can do next year.

But there are other sources of points.
There's [url=http://train.usaco.org]USACO training[/url], [url=http://www.spoj.pl]SPOJ[/url], as well as regular class assignments.

But there are other sources of points. There's USACO training, SPOJ, as well as regular class assignments.

Why not have a little check mark beside questions that you did in other's user pages? It makes comparing who has what program done much more easy.:biggrin:
(*Heh post #100*)

Why not have a little check mark beside questions that you did in other's user pages? It makes comparing who has what program done much more easy. (*Heh post #100*)

I just have a small idea that might help some of us by a lot...
Maybe we could have (point) bonuses if you finish everything from one collection (e.g. SMAC, Woburn Challenge 02, CCC '99)...?

I just have a small idea that might help some of us by a lot...

Maybe we could have (point) bonuses if you finish everything from one collection (e.g. SMAC, Woburn Challenge 02, CCC '99)...?

This probably won't work out too well considering we're doing this for marks and there's no point giving us extra points for something that we would normally do?

This probably won't work out too well considering we're doing this for marks and there's no point giving us extra points for something that we would normally do?

Will they?
I was under the understanding (no pun intended) that these points that we have now were sucked into the void... basically that we would not have them count towards CompSci.

Will they? I was under the understanding (no pun intended) that these points that we have now were sucked into the void... basically that we would not have them count towards CompSci.

Let's say I have 15/20 on What a niche. If I can't finish by today midnight, the point value will be halved. However, I've already earned more than 10 points on the problem. IF I solve it after today midnight, do I still get 20 or do my points drop to 10?

Let's say I have 15/20 on What a niche. If I can't finish by today midnight, the point value will be halved. However, I've already earned more than 10 points on the problem. IF I solve it after today midnight, do I still get 20 or do my points drop to 10?

Would it be nice if you could view other people's submissions for a problem? (once you've solved it, of course)
This would probably make the "Best solutions" page worthless.
But I could output the code as a picture so you can't copy and paste. What do you guys think?

Would it be nice if you could view other people's submissions for a problem? (once you've solved it, of course)

This would probably make the "Best solutions" page worthless. But I could output the code as a picture so you can't copy and paste. What do you guys think?

Due to a small bug, jargon's post has been deleted. Here's the basic idea:
Suppose there are two problems Alpha and Beta. Alpha is worth 5 points and Beta is worth 15 points. Now, suppose Carl and David both solve problem Beta. Carl hasn't figured out an algorithm for Alpha. David, on the other hand, could easily modify his code to make it work for Alpha, but doesn't because he wants to keep his average up. Wouldn't that be like giving points to Carl?

Due to a small bug, jargon's post has been deleted. Here's the basic idea: Suppose there are two problems Alpha and Beta. Alpha is worth 5 points and Beta is worth 15 points. Now, suppose Carl and David both solve problem Beta. Carl hasn't figured out an algorithm for Alpha. David, on the other hand, could easily modify his code to make it work for Alpha, but doesn't because he wants to keep his average up. Wouldn't that be like giving points to Carl?

Generally such occurrences are rare (the only one I can think of is CCC Fractions vs. The Return of the Plachta)
But this site is mostly about learning, and it'd be a good thing if you learned an algorithm by looking at someone else's code. (As long as you don't blindly copy-paste) It's not just about the points.

Generally such occurrences are rare (the only one I can think of is CCC Fractions vs. The Return of the Plachta) But this site is mostly about learning, and it'd be a good thing if you learned an algorithm by looking at someone else's code. (As long as you don't blindly copy-paste) It's not just about the points.

## Comments (Search)

zerglingrushon Dec 15, 2008 - 3:30:35 am UTC Decimal pointsbleung91on Dec 15, 2008 - 3:34:44 am UTC Re: Decimal pointszerglingrushon Dec 14, 2008 - 1:14:05 am UTC Reputationhansonw1on Dec 14, 2008 - 2:11:10 am UTC Re: ReputationThis is now implemented.

bbi5291on Oct 28, 2008 - 2:07:18 am UTC Hint:purohit3105on Dec 10, 2008 - 3:05:06 am UTC Re: Hint:I looked in the wikipedia and it defines the ceil fuction's job as giving the integer of the number closer to 0. It gave the same type of example like 3.5 where it is actually moving away from the 0.

Also, I don't think there is a ceil function in Pascal? Or is there?

bbi5291on Dec 10, 2008 - 3:48:10 am UTC Re: Re: Hint:1. y is greater than or equal to x.

2. There is no smaller value of y that satisfies #1.

For example, ceil(1) = 1, ceil(1.1) = 2, ceil(1.9) = 2, ceil(-1.5) = -1. Basically it's the first integer that you encounter when moving right on the number line.

Bryanon Dec 02, 2008 - 10:59:58 pm UTC Marksbbi5291on Dec 03, 2008 - 3:53:54 am UTC Re: MarksBryanon Dec 04, 2008 - 12:25:41 am UTC Re: Re: MarksSaravannanon Dec 04, 2008 - 12:47:25 am UTC Re: Re: Re: MarksBryanon Dec 04, 2008 - 12:54:16 am UTC Re: Re: Markshansonw1on Dec 04, 2008 - 12:59:57 am UTC Re: Re: Re: MarksBryanon Dec 04, 2008 - 1:24:50 am UTC Re: Re: Re: Re: Markshansonw1on Dec 04, 2008 - 1:32:41 am UTC Re: Re: Re: Re: Re: MarksThere's USACO training, SPOJ, as well as regular class assignments.

Saravannanon Nov 28, 2008 - 6:36:34 pm UTC Re: Re: Re: Re: A suggestionBryanon Dec 02, 2008 - 10:57:13 pm UTC Re: Re: Re: Re: Re: A suggestionSaravannanon Dec 03, 2008 - 3:39:00 am UTC Re: Re: Re: Re: Re: Re: A suggestionHelloMelloon Dec 03, 2008 - 12:08:38 am UTC Another Idea(*Heh post #100*)

jargonon Nov 27, 2008 - 11:38:31 pm UTC A suggestionMaybe we could have (point) bonuses if you finish everything from one collection (e.g. SMAC, Woburn Challenge 02, CCC '99)...?

Saravannanon Nov 28, 2008 - 3:22:38 am UTC Re: A suggestionDrSaneon Nov 28, 2008 - 3:38:37 am UTC Re: Re: A suggestionjargonon Nov 28, 2008 - 6:30:28 pm UTC Re: Re: Re: A suggestionbbi5291on Nov 28, 2008 - 6:35:03 pm UTC Re: Re: Re: Re: A suggestionSaravannanon Dec 02, 2008 - 10:35:58 pm UTC Re: Re: Re: Re: A suggestionjargonon Dec 02, 2008 - 11:00:23 pm UTC Re: Re: Re: Re: Re: A suggestionI was under the understanding (no pun intended) that these points that we have now were sucked into the void... basically that we would not have them count towards CompSci.

bleung91on Dec 01, 2008 - 12:27:58 am UTC And another thinghansonw1on Dec 01, 2008 - 12:47:33 am UTC Re: And another thingbleung91on Dec 01, 2008 - 12:24:02 am UTC Hintshansonw1on Nov 30, 2008 - 6:38:35 pm UTC An ideaThis would probably make the "Best solutions" page worthless.

But I could output the code as a picture so you can't copy and paste. What do you guys think?

frenzybenzyon Nov 30, 2008 - 6:56:37 pm UTC Re: An ideabbi5291on Nov 30, 2008 - 9:35:56 pm UTC Re: Re: An ideaSuppose there are two problems Alpha and Beta. Alpha is worth 5 points and Beta is worth 15 points. Now, suppose Carl and David both solve problem Beta. Carl hasn't figured out an algorithm for Alpha. David, on the other hand, could easily modify his code to make it work for Alpha, but doesn't because he wants to keep his average up. Wouldn't that be like giving points to Carl?

hansonw1on Nov 30, 2008 - 9:47:57 pm UTC Re: Re: Re: An ideaBut this site is mostly about learning, and it'd be a good thing if you learned an algorithm by looking at someone else's code. (As long as you don't blindly copy-paste) It's not just about the points.