题解列表

筛选

输出第n名的排序程序

摘要:```c #include int main() { int sum, rank, r[100] = { 0 }, num[100];//r[]数组存放排名,num[]数组存放学号 fl……

日期非结构解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, y, r; int h; int i; int sum=0; scanf("%d%d%d", &n……

1069: 二级C语言-寻找矩阵最值

摘要:解题思路:使用下标记录最大值位置,在对比时使用数组和下标,这样可以少写一个储存最大值的变量使用abs函数,简化代码参考代码:#include <iostream> #include <cmath>……

1065: 二级C语言-最小绝对值(简洁代码)

摘要:解题思路:第一:使用绝对值进行对比,输出时是原值第二:最小位置与最后一位进行交换使用math库里面的abs函数,其返回值是原值的绝对值,使用数组下标进行比较,可以少写一个储存最小值的变量。使用异或运算……

1093: 字符逆序

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

1395: 倒数第二

摘要:解题思路:注意事项:参考代码:n = int(input())while n != 0:    try:        x = int(input())        a = list(map(int……