摘要:
Quick ChangeTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 4756Accepted: 3491DescriptionJ.P. Flathead’s Grocery Store hires cheap labor to man the checkout stations. The people he hires (usually high school kids) often make mistakes making change for the customers. Flathead, who’s a bit of 阅读全文
摘要:
Triangular SumsTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5361Accepted: 3788DescriptionThe nth Triangular number, T(n) = 1 + … + n, is the sum of the first n integers. It is the number of points in a triangular array with n points on side. For example T(4):XX XX X XX X X XWrite a progr 阅读全文
摘要:
RoundersTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 6316Accepted: 4081DescriptionFor a given number, if greater than ten, round it to the nearest ten, then (if that result is greater than 100) take the result and round it to the nearest hundred, then (if that result is greater than 1000 阅读全文
摘要:
Celebrity jeopardyTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 11429Accepted: 6421DescriptionIt's hard to construct a problem that's so easy that everyone will get it, yet still difficult enough to be worthy of some respect. Usually, we err on one side or the other. How simple ca 阅读全文