题解列表

筛选

1044:三个字符串的排序

摘要:1. 用一个二维数组存储3个字符串 2. 用一个字符指针数组分别存储3个字符串的地址 3. 采取选择排序法和`strcmp()`库函数进行具体的比较和排序 4. 对具体的参数可以采用宏定义以实……

水仙花数问题2

摘要:解题思路:注意事项:参考代码:for n in range(100,1000):    a=n%10    #个位    b=int(n/10)%10  #十位  int()强转:强转成整数    c……

给用Java的开拓一下荒土

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

1670: 拆分位数

摘要:解题思路:wu注意事项:wu参考代码:#include<iostream>using namespace std;int main(){    int n;    cin>>n;    cout<<n……

编写题解 1670: 拆分位数

摘要:解题思路:方法一:我们可以定义一个字符串。注意事项:参考代码:#include<iostream> using namespace std; string n; int main() {  ……

水仙花数判断

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

2939: 最匹配的矩阵

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