SZU-A22】的更多相关文章

P3436 [POI2006]PRO-Professor Szu 题目描述 n个别墅以及一个主建筑楼,从每个别墅都有很多种不同方式走到主建筑楼,其中不同的定义是(每条边可以走多次,如果走边的顺序有一条不同即称两方式不同). 询问最多的不同方式是多少,以及有多少个别墅有这么多方式,按照顺序输出别墅编号. 如果最多不同方式超过了36500那么都视作zawsze 输入输出样例 输入样例#1: 3 5 1 2 1 3 2 3 3 4 3 4 输出样例#1: 4 1 1 这题反向建个图,缩个点,跑个top…
Judge Info Memory Limit: 32768KB Case Time Limit: 10000MS Time Limit: 10000MS Judger: Normal Description Please calculate the answer of A*B, both A and B are integer. Input The first line of input contains , the number of test cases. There is only li…
Judge Info Memory Limit: 65536KB Case Time Limit: 3000MS Time Limit: 3000MS Judger: Number Only Judger Description Within Settlers of Catan, the 1995 German game of the year, players attempt to dominate an island by building roads, settlements and ci…
Judge Info Memory Limit: 32768KB Case Time Limit: 10000MS Time Limit: 10000MS Judger: Normal Description Please calculate the answer of A+B and the answer of A-B, both A and B are integer. Input The first line of input contains , the number of test c…
Judge Info Memory Limit: 32768KB Case Time Limit: 5000MS Time Limit: 5000MS Judger: Float Numbers (1e-4) Judger Description The chemists are well known because of their weird. Especially when they add water or salt in the same beaker over and over ag…
Judge Info Memory Limit: 32768KB Case Time Limit: 1000MS Time Limit: 1000MS Judger: Number Only Judger Description 现在假设: 2进制对应的基数是0,1; 3进制对应的基数是0,1,2; …… 10进制对应的基数是0,1,2,3,4,5,6,7,8,9. …… n进制对应的基数是0,1,2,3,……,n-1; 你的任务是实现进制之间的转换. Input 第一行,有t(t<=1000)…
Judge Info Memory Limit: 32768KB Case Time Limit: 10000MS Time Limit: 10000MS Judger: Number Only Judger Description A number that reads the same from right to left as when read from left to right is called a palindrome. The number 12321 is a palindr…
Description There is a company that makes plastic digits which are primarily put on the front door of each house to form the house number. In order to make sure that they don’t waste any resources, they want to make the exact number of digits for the…
Judge Info Memory Limit: 32768KB Case Time Limit: 10000MS Time Limit: 10000MS Judger: Normal Description A boy and a girl both like studying code in their extra-curricular. Of course, they like each other. Therefore, the boy shows his love to the gir…
Judge Info Memory Limit: 32768KB Case Time Limit: 10000MS Time Limit: 10000MS Judger: Number Only Judger Description Frog Frank likes 30 more than likes 40, yet he likes 12 and 39 equally. This is because he likes numbers that have a lot of different…