题解列表

筛选

简单易懂的绝对值排序!

摘要:解题思路:本题的难点在于输入数据有多组,每组占一行,每行的第一个数字为n,接着是n个整数,n=0表示输入数据的结束,不做处理。如果是只有一行很好办,加一个绝对值函数用选择或者冒泡排序,多行的话参考了题……

简单易懂!!!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>int main(){     char str[10];     ……

简单易懂!!!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){     int t,a[3]={0};     scanf("%d",&t); ……

666666666666666666

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>#include<cstring>using namespace std;const int N=1e……

骑车与走路

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n);int bx = n / 1.2;int bike = n / 3.……

分段函数 -- 简单明了

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    double n;    scanf("%lf",&n);    if(0<=n && n<5) / /注……

1030: [编程入门]二维数组的转置

摘要:```cpp #include using namespace std; /* 题目描述 写一个函数,使给定的一个二维数组(3×3)转置,即行列互换。 输入格式 一个3x3的矩阵 输……

题解 2831: 画矩形

摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { char ch; int i, j, h, l, flag; //h,高,l,长;flag为空……

题解 2832: 第n小的质数

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int isPrime(int n) {     int i, k;  k = (i……