摘要:
roblem DescriptionTom owns a company and he is the boss. There are n staffs which are numbered from 1 to n in this company, and every staff has a abil... 阅读全文
摘要:
Little X used to play a card game called "24 Game", but recently he has found it too easy. So he invented a new game.Initially you have a sequence ofn... 阅读全文
摘要:
Mr. Kitayuta has just bought an undirected graph consisting ofnvertices andmedges. The vertices of the graph are numbered from 1 ton. Each edge, namel... 阅读全文
摘要:
DescriptionTomash keeps wandering off and getting lost while he is walking along the streets of Berland. It's no surprise! In his home town, for any p... 阅读全文
摘要:
DZY loves chemistry, and he enjoys mixing chemicals.DZY hasnchemicals, andmpairs of them will react. He wants to pour these chemicals into a test tube... 阅读全文