题解列表

筛选

图像相似度(JAVA)

摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2881: 图像相似度 import java.util.Scanner; public class t_2881 { ……

两个嵌套for循环解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n, b, sum;    scanf("%d",&n);    sum = 0;    for ……

1084素数筛法

摘要:素数筛的主要是采用反向构造合数的方式,筛选出素数。 如何构造合数? 在大于1的数字中任取两个数a, b相乘得到C,此时C必为合数(因为c此时的因子必有:1,a, b, c。) 算法思路:……

编写题解 2884: 矩阵乘法

摘要:解题思路:注意事项:参考代码:package arrLast; //题目 2884: 矩阵乘法 import java.util.Scanner; public class t_2884 { ……

[编程入门]链表合并

摘要: **核心思想是先将二者合并,再利用插入排序** ## 代码 #include #include typedef struct N……

图像旋转(Java)

摘要:解题思路:注意事项:参考代码:public static void main(String args[]) { Scanner sc=new Scanner(System.in); int……

编写题解 2789: 骑车与走路

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    scanf("%d",&a);    if((a/3.0+27+23)<(a/1.2)……

编写题解 2790: 分段函数

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){   float a;   scanf("%f",&a);   if(a>=0&&a<5)   printf("%……

大整数加法(C++)

摘要://大整数加法#include <bits/stdc++.h>using namespace std;int na[1005], nb[1005];string add(string a, strin……