答案
清寒飘叶
啥都不会嘟噜噜~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
山东理工oj1833答案
A Problem Description 有一个长度为n的整数序列,其中最大值和最小值不会出现在序列的第一和最后一个位置。 请写一个程序,把序列中的最小值与第一个数交换,最大值与最后一个数交换。输出转换好的序列。 Input 输入包括两行。 第一行为正整数n(1≤n≤10)。 第二行为n个正整数组成的序列。 Output 输出转换好的序列。数据之间用空格隔开。 #i原创 2016-11-04 11:08:43 · 9357 阅读 · 0 评论 -
山东理工oj 1831答案
A Problem Description Your task is to Calculate a + b. Input Your task is to Calculate a + b. Output For each pair of input integers a and b you should output the sum of a and b in one原创 2016-10-21 17:23:48 · 6800 阅读 · 3 评论 -
山东理工oj1832答案
A Problem Description 计算下列表达式值: Input 输入x和n的值,其中x为非负实数,n为正整数。 Output 输出f(x,n),保留2位小数。 #include #include double f(double x, int n); int main() { double x, result; int n;原创 2016-10-31 21:00:27 · 8704 阅读 · 1 评论 -
山东理工1834答案
A Problem Description 输入N*N的矩阵,输出它的转置矩阵。 Input 第一行为整数N(1≤N≤100)。 接着是一个N*N的矩阵。 Output 转置矩阵。 Example Input 2 1 2 1 2 Example Output 1 1 2 2 #include #define h 100 int main() {原创 2016-12-05 08:18:29 · 2523 阅读 · 0 评论 -
山东理工1835答案
A Problem Description 机械实验班有个同学叫小泉,有一天数学老师给小泉布置了一道个人作业,给小泉M(M<=100)组数据,每组数据有N个正整数(N<=100)让他把每组的N个数按升序排成一行,但由于数的数目比较多,人工做很费时,于是小泉就想到了喜欢编程序的你,请你帮他解决这个问题,可不要让他失望噢。 Input 输入包括M+1行,第一行是两个正整数M、N;M表示总共原创 2016-12-08 22:59:00 · 3865 阅读 · 0 评论 -
离散
A#include #include using namespace std; int main() { int a[100005], i, n, x; int flag; while(cin >> n) { for(i = 0; i < n; i++) { cin >> a[i]; }原创 2017-05-15 19:26:59 · 489 阅读 · 0 评论
分享