UVA 1585 Score

There is an objective test result such as “OOXXOXXOOO”. An ‘O’ means a correct answer of a problem and an ‘X’ means a wrong answer. The score of each problem of this test is calculated by itself and its just previous consecutive ‘O’s only when the answer is correct. For example,

排序练习

题目描述: 给你n个整数,请按从大到小的顺序输出其中前m大的数。 输入: 每组测试数据有两行,第一行有两个数n,m(0 输出: 对每组测试数据按从大到

绝对值排序

Description 输入n(n Input 输入数据有多组,每组占一行,每行的第一个数字为n,接着是n个整数,n=0表示输入数据的结束,不做处理。 Output 对于每个测试实例,输出

Python元组

元组与列表的区别之处在于,元组的元素不能修改。但是可以进行分片链接操作。 元组 name=(‘赵驰’,100,99,88