题解列表

筛选

函数数字后移

摘要:解题思路:先判断有几项需要交换,然后将需要交换的从最后一位开始交换,存放到另一个数组之中,交换的次数-1对应与数组-1交换后的位置,次数-2对应于数组-2的位置,交换之后将没有改变的几项依次复制到b数……

聪明的美食家_c

摘要: #include int main() {//主要思路:从前往后遍历小吃 第一家小吃默认为最大次数1 之后求出每个小吃的最大爽的次数 int n; scanf("%d", &n)……

2857: 加密的病历单

摘要:解题思路:注意事项:参考代码:#include <iostream> #include <cstring> #include <algorithm> using namespace std; ……

2939: 最匹配的矩阵

摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int SUM(int r,int s,int a[r][s],int b[r][s]){  ……

水仙花数判断

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){     int a,b,c,d;     for(a=100;a<1000;a++)     {     b=……

二级C语言-平均值计算

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){     int a[10];     int i,sum=0,ang=0,temp=0;//定义初始化,及其计……

判断逗号的输出个数

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include<string.h>int main(){    int N, M,count=0;    int a[5000]; ……