题解列表
矩阵对角线求(Java)
摘要:解题思路: matrix.length是行。matrix[0].length是列。注意事项:参考代码:import java.util.Scanner;
public class Main {……
1032: [编程入门]自定义函数之字符串连接
摘要:解题思路:用字符串函数<string.h>注意事项:需注意两个函数的位置,若主函数在前则须在主函数内声明连接的函数参考代码:#include <stdio.h>#include <string.h>v……
自定义函数之字符串反转
摘要:解题思路:for循环,倒叙输出注意事项:参考代码:#include <stdio.h>#include <string.h> int main(){char a[100];int i,j;gets(a……
编写题解 1267: A+B Problem
摘要:import java.util.*;public class Main { public static void main(String [] args){ Scanner sc……
题解 2824: 求出e的值
摘要: #include
using namespace std;
int main(){
double e=0,num=1;
int n;
c……
2828: 与7无关的数
摘要:```
#include
using namespace std;
int n,sum,ans;
int main(){
cin>>n;
for( int i=1;i……
数列极差(Java)题解
摘要:解题思路:1. 首先解决这道题要有一些数学知识,我举例说明,写了四个整数是1,3,5,7 ,第一种结合方式是从小到大结合,1结合3,它们的结果继续结合5,最后得到的结果是最大值,第二种结合方式是从大到……