contest: Codeforces Round #307 (Div. 2), problem: (A) GukiZ

Professor GukiZ likes programming contests. He especially likes to rate his students on the contests he prepares. Now, he has decided to prepare a new contest.

In total,nstudents will attend, and before the start, every one of them has some positive integer rating. Students are indexed from1ton. Let’s denote the rating ofi-th student asai. After the contest ends, every student will end up with some positive integer position. GukiZ expects that his students will take places according to their ratings.

He thinks that each student will take place equal to. In particular, if studentAhas rating strictly lower then studentB,Awill get the strictly better position thanB, and if two students have equal ratings, they will share the same position.

GukiZ would like you to reconstruct the results by following his expectations. Help him and determine the position after the end of the contest for each of his students if everything goes as expected.

,选择自己所爱的,爱自己所选择的。

contest: Codeforces Round #307 (Div. 2), problem: (A) GukiZ

相关文章:

你感兴趣的文章:

标签云: