题解列表

筛选

Tom数 (C语言代码)

摘要:解题思路:想得知长度,及各位上的数字,联想到字符数组,注意事项:参考代码:#include<stdio.h>int sum(char a[]){    int sum1=0,i;    for(i=0……

【绝对值排序】 (C++代码)最简方法

摘要:解题思路:注意点:1、绝对值函数abs();2、排序(可选择冒泡排序、快速排序、归并排序等方法)。这道题唯一的一个小难点是,输入的值要按照其绝对值的大小进行降序排列,并不是对其绝对值进行排列,因此我们……

蛇行矩阵 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String arg……

后缀子串排序 (C++代码)

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