摘要: #include <iostream> using namespace std; int a[10]={1,4,6,8,7,3,2,9,5,10}; void MergeSort(int a[], int n); void MSort(int a[], int TmpA[], int L, int 阅读全文
posted @ 2018-12-30 21:05 贾铭梓 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Polycarpus has n friends in Tarasov city. Polycarpus knows phone numbers of all his friends: they are strings s1,s2,...,sn. All these strings consist 阅读全文
posted @ 2018-12-30 19:27 贾铭梓 阅读(364) 评论(0) 推荐(0) 编辑
摘要: Potato sacks come in different weight capacities (specified in pounds). Potatoes come in different weights. If you are given some number of potatoes o 阅读全文
posted @ 2018-12-30 16:21 贾铭梓 阅读(411) 评论(0) 推荐(0) 编辑
摘要: One cold winter evening Alice and her older brother Bob was sitting at home near the fireplace and giving each other interesting problems to solve. Wh 阅读全文
posted @ 2018-12-30 16:06 贾铭梓 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 在一个平面坐标系中,我们可以选出三个不全在一条线上的点构成一个三角形。我们称一个在三角形内(不包含三角形的边上),横纵坐标皆为整数的点位这个三角形的内点。 对于一个由(0,0)、(n,m)、(p,0)作为顶点构成的三角形,请你设计程序求出他的内点数。 输入包括一行,包括三个用空格分隔的整数,分别为n 阅读全文
posted @ 2018-12-30 15:42 贾铭梓 阅读(305) 评论(0) 推荐(0) 编辑
摘要: Petr stands in line of n people, but he doesn't know exactly which position he occupies. He can say that there are no less than a people standing in f 阅读全文
posted @ 2018-12-30 15:29 贾铭梓 阅读(278) 评论(0) 推荐(0) 编辑