题解列表

筛选

利用C++来编写求和训练

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<math.h> using namespace std;int a,b,c;int sumOfa(int a);lo……

c代码记录之验证字串

摘要:1.空串是所有字符串的子串,但这题好像不验证这个 2.gets不通过,scanf能通过 #include #include int main() { ……

简单的写一下

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

与圆相关的计算

摘要:解题思路:注意事项:使用#include<math.h>头文件里的pow  n次方时编译会显示答案错误参考代码:#include<stdio.h>int main(){ double r; doubl……

简单的写一下

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

三个数字的排序

摘要:解题思路:根据“三个数找最大值”进行细化注意事项:参考代码:#include <stdio.h>int main(){ int a, b, c; scanf("%d%d%d", &a, &b, &c)……

c++ 边乘边加

摘要:#include<iostream> using namespace std; int a[1000],b[1000]; void cheng(int a[],int c) { int j……

1097 蛇形矩阵

摘要:解题思路:其实就是找每个位置上的数与行和列的关系。注意事项:参考代码:#include<stdio.h>int main(){ int n; int a=0,b=1; scanf("%d",&n); ……