随笔分类 - 字符串、枚举
摘要:There is an objective test result such as “OOXXOXXOOO”. An ‘O’ means a correct answer of a problemand an ‘X’ means a wrong answer. The score...
阅读全文
摘要:/*给定一个序列 序列内部数字自由组合 求最大乘积*/#include #include #include #define T 30 //30为数组最大长度void quick_sort(int s[], int l, int r){ int i, j, x; i...
阅读全文
摘要:C字符串-字符数组输入输出函数输入函数scanf("%s", s)读入字符串,在第一个空白符(' '、'\n'、'\t')处停止,不读入空白符,在串尾自动添加'\0'。(%*c表示读入并舍弃,可用于"吃掉"末尾的回车)gets(s)读入一行字符,直到遇到'\n',读入换行符并将其...
阅读全文
摘要:NPY is learning arithmetic progression in his math class. In mathematics, an arithmetic progression (AP) is a sequence of numbers such that ...
阅读全文
摘要:UVA 10082 - WERTYUA common typing error is to place thehands on the keyboard one row to theright of the correct position. So ‘Q’ istyped as ...
阅读全文
摘要:Petya started to attend programming lessons. On the first lesson his task was to write a simple program. The program was supposed to do the ...
阅读全文
摘要:Given a sequence of integers S = {S1, S2, . . . , Sn}, you should determine what is the value of themaximum positive product involving conse...
阅读全文

浙公网安备 33010602011771号