题解列表

筛选

最长单词2(C语言,短小精悍)

摘要:解题思路:可以用两个数组a,b,因为%s是不收取空格,用while循环每次获取一段,然后对比当然也可以用二维数组注意事项:参考代码:#include<stdio.h> #include<string……

编写题解 2883: 矩阵加法

摘要:解题思路:注意事项:参考代码:def matrix(n, m, A, B):    result_matrix = []    for i in range(n):        row_result……

2903 不高兴的津津

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

取引用+substr复制字符串

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;void Copy(string &str_1, string……

2799: 奥运奖牌计数

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

2801: 奇数求和

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

2803: 整数的个数

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

2806: 人口增长问题

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

2805: 乘方计算

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

[编程入门]三个数最大值

摘要:解题思路:使用qsort函数注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int cmp(const void*a,const void*b){    re……