摘要:
After finishing eating her bun, Alyona came up with two integers n and m. She decided to write down two columns of integers — the first column contain 阅读全文
摘要:
Someone gave Alyona an array containing n positive integers a1, a2, ..., an. In one operation, Alyona can choose any element of the array and decrease 阅读全文
摘要:
每年过年的时候,座山雕都会给兄弟们分银子,分银子之前,座山雕允许大伙儿发表意见,因为要是没法满足所有人的意见,指不定谁要搞出什么大新闻。不过每个人在提意见的时候只能说:“我认为 A 分的银子应该比 B 多!”。座山雕决定要找出一种分配方案,满足所有人的意见,同时使得所有人分得的银子总数最少,并且每个 阅读全文
摘要:
Problem Description Master Mind KongMing gave Fei Zhang a secrete master plan stashed in a pocket. The plan instructs how to deploy soldiers on the fo 阅读全文
摘要:
The capital of Berland has n multifloor buildings. The architect who built up the capital was very creative, so all the houses were built in one row. 阅读全文
摘要:
One day Vasya the Hipster decided to count how many socks he had. It turned out that he had a red socks and b blue socks. According to the latest fash 阅读全文