摘要:
The wheel of the history rolling forward, our king conquered a new region in a distant continent.There are N towns (numbered from 1 to N) in this regi 阅读全文
摘要:
XXX is puzzled with the question below: 1, 2, 3, ..., n (1<=n<=400000) are placed in a line. There are m (1<=m<=1000) operations of two kinds.Operatio 阅读全文
摘要:
Everybody knows that totalfrank has absolutely no sense of direction. Getting lost in the university or nearly supermarket is very common for him. We 阅读全文
摘要:
In your childhood, do you crazy for collecting the beautiful cards in the snacks? They said that, for example, if you collect all the 108 people in th 阅读全文
摘要:
Clairewd is a member of FBI. After several years concealing in BUPT, she intercepted some important messages and she was preparing for sending it to y 阅读全文
摘要:
You, a part-time dining service worker in your college’s dining hall, are now confused with a new problem: serve as many people as possible. The issue 阅读全文
摘要:
You, the head of Department of Security, recently received a top-secret information that a group of terrorists is planning to transport some WMD 1 fro 阅读全文
摘要:
In the vast waters far far away, there are many islands. People are living on the islands, and all the transport among the islands relies on the ships 阅读全文
摘要:
Given a number N, you are asked to count the number of integers between A and B inclusive which are relatively prime to N.Two integers are said to be 阅读全文
摘要:
On Mars, there is a huge company called ACM (A huge Company on Mars), and it’s owned by a younger boss.Due to no moons around Mars, the employees can 阅读全文