答案
清寒飘叶
啥都不会嘟噜噜~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
山东理工oj1833答案
AProblem Description有一个长度为n的整数序列,其中最大值和最小值不会出现在序列的第一和最后一个位置。请写一个程序,把序列中的最小值与第一个数交换,最大值与最后一个数交换。输出转换好的序列。 Input输入包括两行。第一行为正整数n(1≤n≤10)。第二行为n个正整数组成的序列。 Output输出转换好的序列。数据之间用空格隔开。 #i原创 2016-11-04 11:08:43 · 9298 阅读 · 0 评论 -
山东理工oj 1831答案
A Problem DescriptionYour task is to Calculate a + b. InputYour task is to Calculate a + b. OutputFor 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 · 6729 阅读 · 3 评论 -
山东理工oj1832答案
AProblem 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 · 8634 阅读 · 1 评论 -
山东理工1834答案
AProblem Description输入N*N的矩阵,输出它的转置矩阵。 Input第一行为整数N(1≤N≤100)。接着是一个N*N的矩阵。 Output转置矩阵。 Example Input21 21 2Example Output1 12 2#include #define h 100int main(){原创 2016-12-05 08:18:29 · 2474 阅读 · 0 评论 -
山东理工1835答案
AProblem Description机械实验班有个同学叫小泉,有一天数学老师给小泉布置了一道个人作业,给小泉M(M<=100)组数据,每组数据有N个正整数(N<=100)让他把每组的N个数按升序排成一行,但由于数的数目比较多,人工做很费时,于是小泉就想到了喜欢编程序的你,请你帮他解决这个问题,可不要让他失望噢。Input输入包括M+1行,第一行是两个正整数M、N;M表示总共原创 2016-12-08 22:59:00 · 3842 阅读 · 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 · 473 阅读 · 0 评论
分享