题解列表

筛选

单词排序(Java)

摘要:解题思路:先以空格分隔字符串,转为数组,接着去除多余空格,排序·然后去除重复单词注意事项:一直通过不了但没找出问题,求助!!!参考代码:import java.util.Arrays;import j……

2899: 蛇形填充数组

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>struct people{    char sex[7];  ……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int x){    int f1=1,f2=2,i,f3;    if (x == 1)        return f1……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n,i,t;    double a, b,c;    scanf("%lf %lf %d", &……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>struct book{    int id;    char name[26];};int mai……

c语言代码解决问题

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int sum_appro(int x){    int sum = 0,i;    for (i = 1; i <= x/2; i++……

编写题解 2794: 求平均年龄

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int n ;    int sum=0 ;    ……

1164: 数组的距离

摘要:```c++ #include int main() { int *p = nullptr; int *q = nullptr; int m, n; c……